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/ik8wuzd8241j/plugin/1/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AZG1hQ0PLUq8BYB6sGuzHk0fRPOWpqoin1iofqe-Tf5i2kQPSjk8fJL2U-pamE8SZm1tILCl4kPuIkL0");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZDdjZmI5ZmZhODI3N2Y1NTdlMTliYzVkNjM3ZjdhZjI3Y2MzMWZjNjRkZDM2NGQ4ZWIxNDRkNDc5YmQyNGI3NHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDctMzBUMDg6NTE6MjQuNzAyWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVBoa0hwMG04ekVsSV9xWjhmTkdYRWQzTHhuaDZaLU16VDVTQzVYSzRFU01QRTZEUS15MWFsOTBacGRjT08zQms4SXN0Tld6UXNfQWxnNkRJeFVkX0lDWW90amFBIn19");
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", "AZG1hQ0PLUq8BYB6sGuzHk0fRPOWpqoin1iofqe-Tf5i2kQPSjk8fJL2U-pamE8SZm1tILCl4kPuIkL0");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZDdjZmI5ZmZhODI3N2Y1NTdlMTliYzVkNjM3ZjdhZjI3Y2MzMWZjNjRkZDM2NGQ4ZWIxNDRkNDc5YmQyNGI3NHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDctMzBUMDg6NTE6MjQuNzAyWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVBoa0hwMG04ekVsSV9xWjhmTkdYRWQzTHhuaDZaLU16VDVTQzVYSzRFU01QRTZEUS15MWFsOTBacGRjT08zQms4SXN0Tld6UXNfQWxnNkRJeFVkX0lDWW90amFBIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('66a8a9a26778e', 'paypal', 'checkout', 'pill', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66a8a9a26778e', 'paypal', 'checkout', 'pill', 'gold');
});
}