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", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiM2E5ZWVmNjc4N2I5ZGFiZWI2MWIxZDc5YjY0MTU4Y2Y5NTFjYjVlNWM0YmJlY2ViY2NhMmQxNWY1M2Q5YThiMHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMTlUMDU6Mjc6NDIuMzc0WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5RbUh6YXVIT3BxOVQwZ3RJa1g2dEpJOXZTWS04NXh2LVRTTmlDdHV3TUwxRmRaNld6Y0RUQW91d1BmX0dPMUx6dDJGSWdkcVBtb2F6dDBib01Tckg2RUhLNWpBIn19");
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", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiM2E5ZWVmNjc4N2I5ZGFiZWI2MWIxZDc5YjY0MTU4Y2Y5NTFjYjVlNWM0YmJlY2ViY2NhMmQxNWY1M2Q5YThiMHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMTlUMDU6Mjc6NDIuMzc0WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5RbUh6YXVIT3BxOVQwZ3RJa1g2dEpJOXZTWS04NXh2LVRTTmlDdHV3TUwxRmRaNld6Y0RUQW91d1BmX0dPMUx6dDJGSWdkcVBtb2F6dDBib01Tckg2RUhLNWpBIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('65f9285753b31', 'paylater', 'paypal', 'rect', 'blue');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('65f9285753b31', 'paylater', 'paypal', 'rect', 'blue');
});
}