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/2ibmq9cykoef/plugin/4/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AWuJ0IL8f4ouSVyiSoanLpENLz1zU-mMuviiLsPAUG3o7URzDoLu9i2mqIDU04cQk1iBove3arrzqu4Z");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiODRmMmE3NzczMDBlYjY4NjZhYjAyNzljNGJhNTlmMDJiNDcwNjY4MzI5YWQ0NWU0ZmNiMWRlMTU0MmUwN2IxMXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMjhUMTI6MDY6MzguODkwWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5LN3hMVmxOcU0wT0Rzcy1lR21PeHkyWkJIY29HUUlTNGRHT0ZYay1YbDZNQTZhek5vSTBRTUg4RUpRdlE0dWZCT0xUbzBHZmlkX3lpR01UblJpT3RndElSV2FRIn19");
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", "AWuJ0IL8f4ouSVyiSoanLpENLz1zU-mMuviiLsPAUG3o7URzDoLu9i2mqIDU04cQk1iBove3arrzqu4Z");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiODRmMmE3NzczMDBlYjY4NjZhYjAyNzljNGJhNTlmMDJiNDcwNjY4MzI5YWQ0NWU0ZmNiMWRlMTU0MmUwN2IxMXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMjhUMTI6MDY6MzguODkwWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5LN3hMVmxOcU0wT0Rzcy1lR21PeHkyWkJIY29HUUlTNGRHT0ZYay1YbDZNQTZhek5vSTBRTUg4RUpRdlE0dWZCT0xUbzBHZmlkX3lpR01UblJpT3RndElSV2FRIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('66056aeda8025', 'paylater', 'paypal', 'rect', 'blue');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66056aeda8025', 'paylater', 'paypal', 'rect', 'blue');
});
}