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/xnv804jkug1l/plugin/10/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AU6fFh8GMNGom5tk5n6Hkr0Ekb2yeKrG4omQds1tLzFH4okipt-SxEMdtBmFmqUv6V2NkSPESx9O5ADD");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiOTUwNDBhM2EwNmJkZjUzOWU0ZThkN2U5OTVlMjIwZmQxNmQ3ODhiNmEyY2JjN2U3M2RjM2ViNjVmYmNmNjQxY3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMjhUMTc6NTQ6MDcuMDg2WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU1KWEdyeG5fbnliMFZJLUxpc0Fvbm1YU2JjMk82SDMyVG5VSEk4cUhLOHBEdEhkNjFIM1ViWk9pZkRQeTZjcVk3STVXZktXRTVnbU5KWFZxcjdyQmFabmVRM0VBIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6605b9f1eae51', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6605b9f1eae51', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6605b9f1eae51', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6605b9f1eae51', 'paypal', 'buynow', 'rect', 'gold');
});
}