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/ncahu2oicrg9/plugin/6/paypal/js/smartPaymentScript.min.js";
script.setAttribute("data-client-id", "AfslQana4f4CQjHvRBnUc6vBJg5jgJuZFwM-SbrTiGKUAqB7MrxQv3QWFdQ6U1h7ogMDokT1DNBzRxMw");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMTA2MWEwN2FmMTIwZWUyYjM3YjY3NzdlYWI4MzNjOWJiYzRlNWQ5MjhiZTE1OGQwYmEwODI5NjQ0OWM0ZmRkM3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDctMjZUMTA6MjY6MjguMzQwWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU10RmxxVWxfalRMUlJPaEZWUFVnaDE3QmNib0hDRHQwZWp4eE9jOWpUa0xLb1N2cHkweG55am10Vk1XaXJGTF8xNXFxSVBYMHctblRaOW95RnpiVDB2ZXZ2b2JnIn19");
script.setAttribute("data-user-id-token", "");
script.setAttribute("data-merchant-id", "QECKVG54LXGWU");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "en_GB");
script.setAttribute("sandbox", "");
script.setAttribute("googlePayComponent", 0);
script.setAttribute("applePayComponent", 0);
document.body.appendChild(script);
} else {
var script = document.getElementById('paypal-smart-payment-script');
script.src = "https://cdn02.plentymarkets.com/ncahu2oicrg9/plugin/6/paypal/js/smartPaymentScript.min.js";
script.setAttribute("data-client-id", "AfslQana4f4CQjHvRBnUc6vBJg5jgJuZFwM-SbrTiGKUAqB7MrxQv3QWFdQ6U1h7ogMDokT1DNBzRxMw");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMTA2MWEwN2FmMTIwZWUyYjM3YjY3NzdlYWI4MzNjOWJiYzRlNWQ5MjhiZTE1OGQwYmEwODI5NjQ0OWM0ZmRkM3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDctMjZUMTA6MjY6MjguMzQwWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU10RmxxVWxfalRMUlJPaEZWUFVnaDE3QmNib0hDRHQwZWp4eE9jOWpUa0xLb1N2cHkweG55am10Vk1XaXJGTF8xNXFxSVBYMHctblRaOW95RnpiVDB2ZXZ2b2JnIn19");
script.setAttribute("data-user-id-token", "");
script.setAttribute("data-merchant-id", "QECKVG54LXGWU");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "en_GB");
script.setAttribute("sandbox", "");
script.setAttribute("googlePayComponent", 0);
script.setAttribute("applePayComponent", 0);
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66a37ff18e483', 'paylater', 'paypal', 'rect', 'gold');
});
} else {
renderPayPalButtons('66a37ff18e483', 'paylater', 'paypal', 'rect', 'gold');
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66a37ff18e483', 'paypal', 'buynow', 'rect', 'gold');
});
} else {
renderPayPalButtons('66a37ff18e483', 'paypal', 'buynow', 'rect', 'gold');
}