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/6l5beiuj6h2e/plugin/13/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AWitTo8tRSJ09LZgrfwXWCbtWSGQgAml66uF0ae-fSqbsRov5uNFdZjyF2eZ4KAoEAzvi8tZDpAV8wfG");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMmVlYjVkYmUwZDhmYjljMWI4NTA3ZDU3ZDhlOTk5MTBmZmM2MDQ2YzFmZWY1Njc2MTFlYzg4YWI1ZDI5OWZkMnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjItMDUtMjZUMjE6Mzc6NDEuOTcwWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5Yc25GVHBwMHF4LUdpY3NGZEpyakotTzhGdmJ4bnpVbENtMndnQ0xJeHdFeTMwOFhpM0FzNlg1WWhiUFZGTFZudjVWU2NtOUUyTlRJelU5Q05MN21fTW1hY1h3In19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('628ff3258ca8b', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('628ff3258ca8b', 'paypal', 'buynow', 'rect', 'gold');
});
}