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/9xi0ypdttb8m/plugin/28/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "ARs2YO3tb9mq-Sf7AoyFHiI_2PyeLqIgJUo2HlyC8nx8ltTiSXpj6Ov_xxX1MzbTRlkj_lVxueksDc96");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiOGE0OTk2NjJlYjA1ZDRjYTczNGNiZTI0MWFmYTFmZmUzZDY5N2IwYmM0NGY2ZThmZTkxMGRmZWU5NTQzMThlOXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDUtMjFUMTE6MTA6MDMuODgzWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5TSXRaNmd4Vnk3OTdUaUZ1Tkd3Nzd5dUdKd2JPVU1kdW01ZzFnOFVJcDBPTzBxRHA2V3ZYMVZsZGRva0pZNnM1SzAzRk1BWVM4MkNrZlpub2oxRVVjLTFOME53In19");
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", "ARs2YO3tb9mq-Sf7AoyFHiI_2PyeLqIgJUo2HlyC8nx8ltTiSXpj6Ov_xxX1MzbTRlkj_lVxueksDc96");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiOGE0OTk2NjJlYjA1ZDRjYTczNGNiZTI0MWFmYTFmZmUzZDY5N2IwYmM0NGY2ZThmZTkxMGRmZWU5NTQzMThlOXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDUtMjFUMTE6MTA6MDMuODgzWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5TSXRaNmd4Vnk3OTdUaUZ1Tkd3Nzd5dUdKd2JPVU1kdW01ZzFnOFVJcDBPTzBxRHA2V3ZYMVZsZGRva0pZNnM1SzAzRk1BWVM4MkNrZlpub2oxRVVjLTFOME53In19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('646a0512eaae5', 'paypal', 'checkout', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('646a0512eaae5', 'paypal', 'checkout', 'rect', 'gold');
});
}