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