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/pvdtyofq45f2/plugin/28/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AVIp3QYDfOHUuC2DG7p--7lS4iiI2Jg9CdgbkEt0RYslHbygrI_00oWzv-1LT7VLd-AUsprnpQcYzF2Y");
script.setAttribute("data-currency", "CHF");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMjgwYjVjNTYzMzkxMWJhZDYyOWRiY2FjMTRlZjJmNzg4N2JmYmE0NWIwYTA4MGFjNTI3YTBjMmM0YWJlODkyZHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDYtMDZUMDc6MzI6NTYuNjI1WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU0ycWVZamtua1MxaDVGLVh5MGlFbjhLQlVVNVlaX0xqbzZCazdTWm9FaU5QTlpTTElaZ21DcktsN0VIcWpKbW5KQWlsVmNPR1lCU1JXN0dTTFh2Y1VlOHBWRTlRIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
} else {
var script = document.getElementById('paypal-smart-payment-script');
script.setAttribute("data-client-id", "AVIp3QYDfOHUuC2DG7p--7lS4iiI2Jg9CdgbkEt0RYslHbygrI_00oWzv-1LT7VLd-AUsprnpQcYzF2Y");
script.setAttribute("data-currency", "CHF");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMjgwYjVjNTYzMzkxMWJhZDYyOWRiY2FjMTRlZjJmNzg4N2JmYmE0NWIwYTA4MGFjNTI3YTBjMmM0YWJlODkyZHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDYtMDZUMDc6MzI6NTYuNjI1WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU0ycWVZamtua1MxaDVGLVh5MGlFbjhLQlVVNVlaX0xqbzZCazdTWm9FaU5QTlpTTElaZ21DcktsN0VIcWpKbW5KQWlsVmNPR1lCU1JXN0dTTFh2Y1VlOHBWRTlRIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('647ee6bc4832f', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('647ee6bc4832f', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('647ee6bc4832f', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('647ee6bc4832f', 'paypal', 'buynow', 'rect', 'gold');
});
}