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/40/paypal/js/smartPaymentScript.min.js";
script.setAttribute("data-client-id", "AVIp3QYDfOHUuC2DG7p--7lS4iiI2Jg9CdgbkEt0RYslHbygrI_00oWzv-1LT7VLd-AUsprnpQcYzF2Y");
script.setAttribute("data-currency", "CHF");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMjYxMGZjZDdmMjRjNzg4MDYzZDEyOTg3NWEyODZjNzE3ZDU3NmE1NTlhNmE4NmE3YjZhM2M1Y2FhNTg4YjU0N3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMTItMDJUMjM6MDY6MzkuNTQ0WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9ZNnFZcWh2Z2ZqUDFIZlR1dG43a1pWYUl1d3NUZlNReTdaM1ZYXzB0OUpfTTlUNW9JUGJBMklKYnpOaUdYYzctb293VVByN3ZMeGJ4NmZ1VXJ2QlNacVBZTXRBIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "en_GB");
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", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMjYxMGZjZDdmMjRjNzg4MDYzZDEyOTg3NWEyODZjNzE3ZDU3NmE1NTlhNmE4NmE3YjZhM2M1Y2FhNTg4YjU0N3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMTItMDJUMjM6MDY6MzkuNTQ0WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9ZNnFZcWh2Z2ZqUDFIZlR1dG43a1pWYUl1d3NUZlNReTdaM1ZYXzB0OUpfTTlUNW9JUGJBMklKYnpOaUdYYzctb293VVByN3ZMeGJ4NmZ1VXJ2QlNacVBZTXRBIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "en_GB");
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('656bc50f1ce7b', 'paylater', 'paypal', 'rect', 'gold');
});
} else {
renderPayPalButtons('656bc50f1ce7b', 'paylater', 'paypal', 'rect', 'gold');
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('656bc50f1ce7b', 'paypal', 'buynow', 'rect', 'gold');
});
} else {
renderPayPalButtons('656bc50f1ce7b', 'paypal', 'buynow', 'rect', 'gold');
}