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/9kihkr6hzome/plugin/49/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "ATMyStZEKclh4Lv3QSnvur_ab4neDm7iBEThLxD4HyYUAbEqeJ3t4hOD9qPV0LG2BtyHU3aBsBYMDWYY");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiOTMyZjc4MTk0YzViY2JhYTRiMTU1ODE1MWU0ZmUwZWJiOTdiYTAyNzVjYjVkNDY5MmMxZTdmNWRkZjdmOGNkZHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDMtMzBUMjA6Mzc6NDMuNzI3WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5TM2N3ZGtMUjNZTHNsOC04aXlhZnlXSHZIYlVNM0RlQl9qejhzME11NzZDZk96THFPRHBWaUVlUm1MUEpfQkdJWVRIbE03eThDLUZtdk1hOWJpRTJsUEZ2T3JRIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
} else {
var script = document.getElementById('paypal-smart-payment-script');
script.setAttribute("data-client-id", "ATMyStZEKclh4Lv3QSnvur_ab4neDm7iBEThLxD4HyYUAbEqeJ3t4hOD9qPV0LG2BtyHU3aBsBYMDWYY");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiOTMyZjc4MTk0YzViY2JhYTRiMTU1ODE1MWU0ZmUwZWJiOTdiYTAyNzVjYjVkNDY5MmMxZTdmNWRkZjdmOGNkZHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDMtMzBUMjA6Mzc6NDMuNzI3WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5TM2N3ZGtMUjNZTHNsOC04aXlhZnlXSHZIYlVNM0RlQl9qejhzME11NzZDZk96THFPRHBWaUVlUm1MUEpfQkdJWVRIbE03eThDLUZtdk1hOWJpRTJsUEZ2T3JRIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6425f993d4e32', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6425f993d4e32', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6425f993d4e32', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6425f993d4e32', 'paypal', 'buynow', 'rect', 'gold');
});
}