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