Kasse
if(!document.getElementById('paypal-smart-payment-script'))
{
var script = document.createElement("script");
script.type = "module";
script.id = "paypal-smart-payment-script";
script.src = "https://cdn02.plentymarkets.com/zgs7qb99pysw/plugin/3/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AcZNZuKZ6XDEkuixuqdJsM_xCvGeqR0t0zOuHPi_6jFgIcUVK_Xmk8MXTJ3lR3ksRqwBIn7kXF6uLk_v");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiN2E1ZmU2Y2FkZjhiODVmYzNkYzBjMzhlNzc3M2E4OGUwMTM5NTkyMTQwNTBjYWY0NGUzMmIxMTRkNjc0MmJiNHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMjlUMTE6Mjc6NDkuMzY1WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU94X0d4WHFOcUt1ODRDYUpuLWlad2Y3bTJDOEMyQ2Zpc0xIZkJ4dmdYMWVzZDEtbl9JcU1JZGljeXVFYkU2Y2VuQ1NGMHZTY1dBZjlvdDZITTJRUFJfNGlvcHhnIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6606af75c2713', 'paypal', 'buynow', 'pill', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6606af75c2713', 'paypal', 'buynow', 'pill', 'gold');
});
}