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", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZTJjMzM5YWIwMjJiMjA1ZWFmNmQyYzM2NzdhYmRjYWU2ZGVmMjYzMWM1NzEwYjk2M2NhMzJhNWY2NDhiZDkxZnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMjhUMTk6Mjc6MTcuMTgxWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9mQkdOSWlRTFZTdTA5VTlmUHlyRnFuWHY4ejRNTzVFLUsxSzNzZThMNl95S3RUUmNjSUtqX09IV1lJNTdMZWM5VEd1VUxLZlV6RlZyd2dPd2tmc2JiZUpGVHlRIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6605c494c4d68', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6605c494c4d68', 'paypal', 'buynow', 'rect', 'gold');
});
}