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/gq23w60lfjh4/plugin/3/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AR9pbMQc_B3JbBxGZo8T5pQGDQZZK_TPOSvMKc1eblPdGUKQNMKF29Aia5ERdpvTJo4HUGhCPEaevpXu");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZWQ4MWIwODU1ZGY2ZWI2ZjQyMjllMmRlYjJjOWE4OTY2MTQ3OWM4ZjhmMTM4NmM4ZWU0MGU1NTg2Y2ZlOGM4YXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDQtMTVUMDY6MzM6MjkuNDcxWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU91NWt6RHBMcHFRNmc5RVUydFItVHZzb2lKMW9MRlEzUGVsWjJ3ZXptbnJOczlQWDV2RnM0bE5lT0owLUpHYVFfSmFYMFVKbWx3WXgxbmZldkZxTTJqcmxRdlhRIn19");
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", "AR9pbMQc_B3JbBxGZo8T5pQGDQZZK_TPOSvMKc1eblPdGUKQNMKF29Aia5ERdpvTJo4HUGhCPEaevpXu");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZWQ4MWIwODU1ZGY2ZWI2ZjQyMjllMmRlYjJjOWE4OTY2MTQ3OWM4ZjhmMTM4NmM4ZWU0MGU1NTg2Y2ZlOGM4YXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDQtMTVUMDY6MzM6MjkuNDcxWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU91NWt6RHBMcHFRNmc5RVUydFItVHZzb2lKMW9MRlEzUGVsWjJ3ZXptbnJOczlQWDV2RnM0bE5lT0owLUpHYVFfSmFYMFVKbWx3WXgxbmZldkZxTTJqcmxRdlhRIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('643a4ae9eb3d9', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('643a4ae9eb3d9', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('643a4ae9eb3d9', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('643a4ae9eb3d9', 'paypal', 'buynow', 'rect', 'gold');
});
}