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/f98508atthbb/plugin/2/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AfmZi9Sse0QWALJcaWVoLNNPEYOD69P82pX0G4Ti_OdqFSFjpOH4ffNja1TZ5s35NWDLjp3ZCncP75jc");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMzM4Yjc3MGM3NWIyMmI2OGUzYzBkMzlmYWUyZGUxOWUxNzg5NDNlMzI1M2FhZjBjNDE1OTczMWI5NGQ0YjFjNXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDUtMjNUMTk6MzQ6NTMuMDUwWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5jZDRuRnNzZ09VTlM1ckoxOG1neWZlUUV0S2J1cW9tMEtSR3FzNERjaF95TzJIR19pbVlySXVtWV9lbW9UQW5WVWJ3TzZTMTl0c0JuX0VNUy16RkFjbUNHUjVRIn19");
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", "AfmZi9Sse0QWALJcaWVoLNNPEYOD69P82pX0G4Ti_OdqFSFjpOH4ffNja1TZ5s35NWDLjp3ZCncP75jc");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMzM4Yjc3MGM3NWIyMmI2OGUzYzBkMzlmYWUyZGUxOWUxNzg5NDNlMzI1M2FhZjBjNDE1OTczMWI5NGQ0YjFjNXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDUtMjNUMTk6MzQ6NTMuMDUwWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5jZDRuRnNzZ09VTlM1ckoxOG1neWZlUUV0S2J1cW9tMEtSR3FzNERjaF95TzJIR19pbVlySXVtWV9lbW9UQW5WVWJ3TzZTMTl0c0JuX0VNUy16RkFjbUNHUjVRIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('646d1f6b3d97f', 'card', 'buynow', 'rect', 'black');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('646d1f6b3d97f', 'card', 'buynow', 'rect', 'black');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('646d1f6b3d97f', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('646d1f6b3d97f', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('646d1f6b3d97f', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('646d1f6b3d97f', 'paypal', 'buynow', 'rect', 'gold');
});
}