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/4adbl59on2w4/plugin/3/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AZ7FAYtlaPlSpiyVewTJFBgqVjVwWjQsl1gyiQaBHdiwIxDd9kSfpu1ZoGzhoV0qwQFzeL3W99xsoXD6");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiOGQzMjdlYzVlOTU5YmE0NmU1NDVlNmJlNTRiOGZjZDJkY2NmMGRlOGE0MDFjNjhlZWE5YjRjODBiMDAyOWQ0M3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjItMDctMDdUMDI6MDU6NDEuNDYwWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5VLW5hMXVQT3BicnNQZE5SVWZKMEY5RzZ6R193Y2dRb0F3N2FfZ0ZsOER2MmtoNVdldktLR1VMZTZ4cGdZWTVMeWtRUWRQNWs3VnZNRHpPRUs1RHgtbDBsZ2xBIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('62c63f749e80a', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('62c63f749e80a', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('62c63f749e80a', 'paypal', 'pay', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('62c63f749e80a', 'paypal', 'pay', 'rect', 'gold');
});
}