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/n5ef6hkj5oe6/plugin/3/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "Aa4fROmwgCE0sPVsoiDfFs62ogfuxC38eY8QFaOVCSLfq57WABBuxUKrDDLK-Gfg7tBPg0X-3iYBCv-J");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZDlmNGYxM2QxM2ExOTlkNTBiOTFiN2U1OGRiMDYwNTFlZjY0OGFjODI5YzBhNDA1NWZlNGJkZWZjYzY4Y2YxZXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMTlUMDY6MDI6MjQuMzQ4WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5NZVp2dG5GNFVsejI2U0tDcG91bW1UamlXa1BIUXZ1Q081X0xySmRucEFGZWNVYVE1cWZ1b0hLOTNFWTNzOEFSU2hxTzA4M2lCc0JRMWcyMDFOdjlkalZnekZRIn19");
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", "Aa4fROmwgCE0sPVsoiDfFs62ogfuxC38eY8QFaOVCSLfq57WABBuxUKrDDLK-Gfg7tBPg0X-3iYBCv-J");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZDlmNGYxM2QxM2ExOTlkNTBiOTFiN2U1OGRiMDYwNTFlZjY0OGFjODI5YzBhNDA1NWZlNGJkZWZjYzY4Y2YxZXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMTlUMDY6MDI6MjQuMzQ4WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5NZVp2dG5GNFVsejI2U0tDcG91bW1UamlXa1BIUXZ1Q081X0xySmRucEFGZWNVYVE1cWZ1b0hLOTNFWTNzOEFSU2hxTzA4M2lCc0JRMWcyMDFOdjlkalZnekZRIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('65f935670bc7d', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('65f935670bc7d', 'paypal', 'buynow', 'rect', 'gold');
});
}