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", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMDMxMzlkZDE1ZmZhMDgyMjY5ZTc5ZDUzY2Y3OTJiMzI2MzFjYjBhZTA5MWVhYTkzYjE3Y2NmOGVjZjBiMzE1OXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDYtMDlUMTg6MTQ6MTEuNTIxWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5Zcy1FSWlvN0FLN2RjcmhpV3B3OWZycTNsbWgwY1dGTjZ5M0RKSDZFRzZtRzlXODYxS0RyazVjMDdlN1A5aEVxd2txczhoX3BMNUJ1RzBvX2xVVVNGbEFPS09BIn19");
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", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMDMxMzlkZDE1ZmZhMDgyMjY5ZTc5ZDUzY2Y3OTJiMzI2MzFjYjBhZTA5MWVhYTkzYjE3Y2NmOGVjZjBiMzE1OXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDYtMDlUMTg6MTQ6MTEuNTIxWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5Zcy1FSWlvN0FLN2RjcmhpV3B3OWZycTNsbWgwY1dGTjZ5M0RKSDZFRzZtRzlXODYxS0RyazVjMDdlN1A5aEVxd2txczhoX3BMNUJ1RzBvX2xVVVNGbEFPS09BIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('64836c29a60bb', 'card', 'buynow', 'rect', 'black');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('64836c29a60bb', 'card', 'buynow', 'rect', 'black');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('64836c29a60bb', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('64836c29a60bb', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('64836c29a60bb', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('64836c29a60bb', 'paypal', 'buynow', 'rect', 'gold');
});
}