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/27puqv9vf339/plugin/12/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "ARPTTjj59OcwEBF1BD8GBIYUznXVlWhSOXfOYBV4yOfVPc-XhPPwHvlmQvNZjKtDYOFh2PL7p596Shxx");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNGE2MDMyYTRiOWU3ODgxZWIxMjE1MDM2OGNiMWMzMDAyMmQxZTQyYmE4YTYzYzk2ZmU1OTU0NWU3NTBiZTkyNHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDYtMDZUMDM6MTA6MDUuNjA2WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU1lajdDSHRHa2tsY0F3Nk5ycmlTdzhrTFlZWmQwVnJKX09uekZmc3hBejdDQzF2SnhiZWU4REh1Y1dqRGw4RGhYX0pCNmxwelVBWVNUQXZMY2JhQVlHdXA1TXJRIn19");
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", "ARPTTjj59OcwEBF1BD8GBIYUznXVlWhSOXfOYBV4yOfVPc-XhPPwHvlmQvNZjKtDYOFh2PL7p596Shxx");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNGE2MDMyYTRiOWU3ODgxZWIxMjE1MDM2OGNiMWMzMDAyMmQxZTQyYmE4YTYzYzk2ZmU1OTU0NWU3NTBiZTkyNHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDYtMDZUMDM6MTA6MDUuNjA2WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU1lajdDSHRHa2tsY0F3Nk5ycmlTdzhrTFlZWmQwVnJKX09uekZmc3hBejdDQzF2SnhiZWU4REh1Y1dqRGw4RGhYX0pCNmxwelVBWVNUQXZMY2JhQVlHdXA1TXJRIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('647eabc313021', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('647eabc313021', 'paypal', 'buynow', 'rect', 'gold');
});
}