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