if(!document.getElementById('paypal-smart-payment-script'))
{
var script = document.createElement("script");
script.type = "module";
script.id = "paypal-smart-payment-script";
script.src = "https://cdn03.plentymarkets.com/j27kcq2z9em6/plugin/4/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "ASiCCmh0YNzgNUaYA0HuJw-WuVK8g86wNYinI2lBbn3sY_ccAfOzvt9PMcvJZQXuyB8jRr89GnWQRsBQ");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMGY0NGQwY2UwYjFlMDcxZDgxNmQ2N2FhOTg1NmNjMjU4Mjg3ODFmODVmOWZjYTRiZTY2YjIwNmM4MjRjMmRlNXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMTAtMjdUMTQ6MTM6NDcuNjkzWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU52bFNoc3ZGd0ZNLVM2YzhHdE1BVmg0R0F3S09URHpDU3o1Wm1qM3hIcm55ektZV1FwSXhqTEkyT3BTRVhoZlNXdnhJTkNGOW1Ncy1BbWRfSkliNUFaM190MGpnIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('653bca5836485', 'paypal', 'pay', 'pill', 'blue');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('653bca5836485', 'paypal', 'pay', 'pill', 'blue');
});
}