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/y1g27aamp6y5/plugin/3/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "ATn-gSfBbyhN2v-fh2ovY4FMMcX0CUgNa4yqzE5dsqbye352790ZDg57sC77kH_3TIj2z3_lR3IcKzUP");
script.setAttribute("data-currency", "CHF");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNDQyOGI5YWUxNGIxNmMwOTdkMzM3MWI0MTc2YTEwOGQ5NGExNGJhYzg0NDFkNjk1MTM1NGZkZjFiMDE4OWYyZHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDMtMjRUMDY6NDY6NTcuNjk4WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU02bU1SYm53M0psdEh1Mjc0NjB2MU1vblN4b3FGZll5cnk2eW1Kb0dkTURPeUVnSlhUWGswY2RGZ1BPN3NKY1A0SGFQX0RIU3AtejNZVS1XRWZIUUFxNGpPamR3In19");
script.setAttribute("data-append-trailing-slash", "1");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('641d47615bb71', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('641d47615bb71', 'paypal', 'buynow', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('641d47615bb71', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('641d47615bb71', 'paylater', 'paypal', 'rect', 'gold');
});
}