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/fq266pe6a8zs/plugin/19/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "Aaqi6sVSu0SOcMDiaWmhKSfW_MyVZqI3UOS1p8_RTx0aDx3oZrBaVAf4TU01WVgSGXVgCNePuiBJ0d2b");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNWUxMzBlMmZjZGVkM2E5OGZmZjU3OGIwZDZhZDIwYWQwOWY4OWE3ZjBmYzk3ZTM2MTllNjNmZTlmMzQxNmQ1ZXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDMtMTdUMDM6MTY6MjYuOTU2WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU84a3o4eGlUYjRmNng4Z2RHS1RXNmZ4d1RKcmIxd29kbUxzN0g0bmJ0RFN3QXVOakVlam9SQ0h5WlZaQV9mX28tbGtrWENmbUFUaUI5OFY5eWZ2WlBhaEk4Z3l3In19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6413e8dcdcb93', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6413e8dcdcb93', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6413e8dcdcb93', 'paypal', 'pay', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6413e8dcdcb93', 'paypal', 'pay', 'rect', 'gold');
});
}