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/i70yyq9ik3kl/plugin/33/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AVuxuqLiI9YPSU8dOftea9ZlYfvEBKloBq9IgYKrG0okztbY3ogp8aCBNt2l2W4TNyFWSlSzn495y9oW");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZjhkZDE0ZDE2OTUyZjg0N2E0NjA4MjE3MDg3M2E5MzAyMDI2MzFiMTdhNDY2ODI4OGMwZDkyNGUxNjJlYzU1ZHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDUtMjhUMDA6NTY6NDQuODY1WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVBLb2dWTW9zZjRrYVkxdmF3ZTJTSmY1Y1lxRjBQSWh6VkZicGhBeU16VWVhdnFwUGNfanFHZ194RER3Z3AtNUdDN2FZZGF0djBxaE94TDFpZWQ2d2RHUEU0bWdnIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
} else {
var script = document.getElementById('paypal-smart-payment-script');
script.setAttribute("data-client-id", "AVuxuqLiI9YPSU8dOftea9ZlYfvEBKloBq9IgYKrG0okztbY3ogp8aCBNt2l2W4TNyFWSlSzn495y9oW");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZjhkZDE0ZDE2OTUyZjg0N2E0NjA4MjE3MDg3M2E5MzAyMDI2MzFiMTdhNDY2ODI4OGMwZDkyNGUxNjJlYzU1ZHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDUtMjhUMDA6NTY6NDQuODY1WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVBLb2dWTW9zZjRrYVkxdmF3ZTJTSmY1Y1lxRjBQSWh6VkZicGhBeU16VWVhdnFwUGNfanFHZ194RER3Z3AtNUdDN2FZZGF0djBxaE94TDFpZWQ2d2RHUEU0bWdnIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6472a8a2df128', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6472a8a2df128', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6472a8a2df128', 'paypal', 'buynow', 'rect', 'blue');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6472a8a2df128', 'paypal', 'buynow', 'rect', 'blue');
});
}