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/2120n3goukf3/plugin/1/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AU7xo2MnW8e1ipGYKEJDEbtr9Q5erTCwr3LwZv_FQ3pP754g2sELCVP9LiERSofrIjifUvN0Kj5OJdQZ");
script.setAttribute("data-currency", "CHF");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZTY1Zjg0YWZiZGFkYmZiMWRiZmJhYThjMjg4ZWYzYTU3MzdjNGQ4ODk2NzA3M2UwOGI1ZmVkZWYzZDYyYmM0ZHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjUtMDctMDVUMDM6MjE6MTMuNDg0NTg1NjY1WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU1UbFo3MG1IdjNIdW5JRW56Wm1NczlrQ2ZoRmRxUFB0ZEFZNXdwWG9EOWp6ZU5JZk5zR1hPV3FaMzZ1VmxBRVNURFg2MUpkZ21yT1V2MU45UE5fNm9ESkxKMEhnIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('68689a2909388', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('68689a2909388', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('68689a2909388', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('68689a2909388', 'paypal', 'buynow', 'rect', 'gold');
});
}