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/epz0zx1qug71/plugin/6/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AdVSe0kdFZGskmqRsU9Lt2yjsN5-Z94T4fsU3vt8WFcGzDIUcYIMmK7uJuhpIXPcKQGrJrwTm6zQs_n-");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNmZhNThiYWJjODk2YTJkZjkyMzYzZTUyN2U5MjYzZmY5YmI2MWZjYzA2ZWQxNmQwNDM1OTg1ZjFkNjhhNmQyZHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjItMDgtMThUMjA6MjY6MDMuNjIzWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVBLbVNGNGpGUWprRU1NSkZ1cGJQQWNwcFpuYWpIZDVkSTc1NUFiWE1qNWU0aU9xbnNpdmtLWkU4ZWo2dTVLU2NKc1huRk4tSVV4QkVWd0oyemktck9fV2Rxelh3In19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('62fea2d7b6c08', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('62fea2d7b6c08', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('62fea2d7b6c08', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('62fea2d7b6c08', 'paypal', 'buynow', 'rect', 'gold');
});
}