if(!document.getElementById('paypal-smart-payment-script'))
{
var script = document.createElement("script");
script.type = "module";
script.id = "paypal-smart-payment-script";
script.src = "https://cdn03.plentymarkets.com/rgsrfv3g1jg1/plugin/23/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AaWDKmEayQh8QwxKPWW__EZ3c7c3Do_0uJj4MrkzJ4IctUDXqmmSTBn7JiCdJ2-w2OLaYx1xk9VyElfe");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYjJhYzQ5NWJhNDJmNTljZjljZTgxNTUyZGQ4ODdhMGNjNDBlYzQyOTAzZjZkYWE0OTRhY2I1ZjkxY2E3NGE1YnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDYtMDVUMjE6MjI6NTIuMjEyWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU1PUTZuenBxZWFPWFZHcm9CbWpoTzl4Y0RYX3VUSVB6Uk1OLU55UFlhZTREWHRPYUp6ZUg5TmhTV2QwNExBblNfaVJ2bms2SDRta2JSd1hkMjV5bmY0OHBmODlRIn19");
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", "AaWDKmEayQh8QwxKPWW__EZ3c7c3Do_0uJj4MrkzJ4IctUDXqmmSTBn7JiCdJ2-w2OLaYx1xk9VyElfe");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYjJhYzQ5NWJhNDJmNTljZjljZTgxNTUyZGQ4ODdhMGNjNDBlYzQyOTAzZjZkYWE0OTRhY2I1ZjkxY2E3NGE1YnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDYtMDVUMjE6MjI6NTIuMjEyWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU1PUTZuenBxZWFPWFZHcm9CbWpoTzl4Y0RYX3VUSVB6Uk1OLU55UFlhZTREWHRPYUp6ZUg5TmhTV2QwNExBblNfaVJ2bms2SDRta2JSd1hkMjV5bmY0OHBmODlRIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('647e5d3f8892c', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('647e5d3f8892c', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('647e5d3f8892c', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('647e5d3f8892c', 'paypal', 'buynow', 'rect', 'gold');
});
}