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/fo55nitsrt8j/plugin/95/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AZfpBcz7z-bC1M7_SIiCafiyB-C5CKBCVHgkEOsTlOmxqDIBmiO-lvIZoKD5ao5nhUfXhMtCLqKr40Mm");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNzFkODVjYzY0YmM2YjA0MWM1ZTBiMjBiNzNhMmRiYjVhM2MxOWJkOGQ3ZjhhNzk5ODU4YTA1ZTU0NDY0NzBkZXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDUtMzBUMDY6MTc6NTguMTIwWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5qXzNzOWpudDBWa1ZGRS1fTVVZOHNoVGNHeXd6eEJnNm42WktaS09GZTBqRnJRb3JOLWhHV1ZsbnF4eUFteHkyTmk3VlpHcXE2Qm9XUWh1a2ktem9iNEdHN2hBIn19");
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", "AZfpBcz7z-bC1M7_SIiCafiyB-C5CKBCVHgkEOsTlOmxqDIBmiO-lvIZoKD5ao5nhUfXhMtCLqKr40Mm");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNzFkODVjYzY0YmM2YjA0MWM1ZTBiMjBiNzNhMmRiYjVhM2MxOWJkOGQ3ZjhhNzk5ODU4YTA1ZTU0NDY0NzBkZXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDUtMzBUMDY6MTc6NTguMTIwWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5qXzNzOWpudDBWa1ZGRS1fTVVZOHNoVGNHeXd6eEJnNm42WktaS09GZTBqRnJRb3JOLWhHV1ZsbnF4eUFteHkyTmk3VlpHcXE2Qm9XUWh1a2ktem9iNEdHN2hBIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('64759ea8c1d14', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('64759ea8c1d14', 'paypal', 'buynow', 'rect', 'gold');
});
}