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/3fg918det71l/plugin/16/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AdMajk9uKVDav1pOUaPtodu4pDck33oka5mpKwYY5cfhvMCYJzpn3S9LGBO4aiA6mIhmYf7VdKR_qqKN");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNDQ4MWU1ZDcxY2IwY2M1OTBiOTRhNTA0YWI5OTQ0NDgxZDgyM2UwYTE3ODYzNTAxOWRjNWFjN2Y3ODNlN2QxMnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDMtMjdUMDE6NDc6MTMuODAyWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9oYUh1dmtpcnRzekl4TjcxcF82WjYtdG9DTFA1V1Y1QW1RMktwUjVuZGFRU0ozS2FjX1F4RmFhQmtaM1hFaVpQUjR1VmN5VVJHVlRDTlFxUUdkdzN0TWY2NDZ3In19");
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", "AdMajk9uKVDav1pOUaPtodu4pDck33oka5mpKwYY5cfhvMCYJzpn3S9LGBO4aiA6mIhmYf7VdKR_qqKN");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNDQ4MWU1ZDcxY2IwY2M1OTBiOTRhNTA0YWI5OTQ0NDgxZDgyM2UwYTE3ODYzNTAxOWRjNWFjN2Y3ODNlN2QxMnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDMtMjdUMDE6NDc6MTMuODAyWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9oYUh1dmtpcnRzekl4TjcxcF82WjYtdG9DTFA1V1Y1QW1RMktwUjVuZGFRU0ozS2FjX1F4RmFhQmtaM1hFaVpQUjR1VmN5VVJHVlRDTlFxUUdkdzN0TWY2NDZ3In19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('64210307d63a4', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('64210307d63a4', 'paypal', 'buynow', 'rect', 'gold');
});
}