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/9w32s9up0arg/plugin/11/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AfyRkAl6bQ5NqEKhN-XbcVvrjVkewSgWifXDsIbwOhp682o0uO3ra-MmLM-GagvDIx1J-vhBR07zM7do");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZDA2YmU0MjBlYjQ5ZWFiMzdhZTI5ZjI3ZTg2NDIyMDAzNWY4ODc5ZTk3MzczNGZmYjQyZGZmZDg4NzNkMDAxNnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMTItMDZUMjA6MzU6MDAuODU3WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU93em0xbm9UWjQzZl90bjNOd2l3TG9BNlVqaUhrbHNCd1FHY0l2aUROUlpnRVF6LTQ4R1VyOTdueS1ycGE0M09MNFVRaF9RbTc5aE5tdHFyd1pkOWdXTXE4ZUZBIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6570daf3d7afd', 'paypal', 'buynow', 'rect', 'blue');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6570daf3d7afd', 'paypal', 'buynow', 'rect', 'blue');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6570daf3d7afd', 'paylater', 'paypal', 'rect', 'blue');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6570daf3d7afd', 'paylater', 'paypal', 'rect', 'blue');
});
}