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/4xrovzxq4l2m/plugin/2/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AaNCbfGbMRFGAdW751NPjHhacMZ-rO8D_GtZqJ2Q2zm8as1ZfTxHNudHsCPfTIX-fQMVGSqhop1olMmH");
script.setAttribute("data-currency", "CHF");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZDE2NGVlN2E5OTJjNzVmOGNlZTZiM2YyMDFiM2FjNDU2MmI3MDBiNjIwYjQxMjY3YmY4MGM2ZGU1OTU5MDZiNHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMjlUMDI6MTA6NDMuNDI5WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVAtMXJ2bWdraFJDd1Q2cTVsLVRtYjdYeFBqdUdGYzNKc1RfQV90ZXhPcDc4MVczMjdKXzBzeU5CLXBNaTc4VFIwcDdmcU5xcDhpV0RtQTRrN29xXzk5UVBiZFVRIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('66062322a2911', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66062322a2911', 'paypal', 'buynow', 'rect', 'gold');
});
}