if(!document.getElementById('paypal-smart-payment-script'))
{
var script = document.createElement("script");
script.type = "module";
script.id = "paypal-smart-payment-script";
script.src = "https://cdn03.plentymarkets.com/tbnf8bi5e8k7/plugin/7/paypal/js/smartPaymentScript.min.js";
script.setAttribute("data-client-id", "AQWJV1Nou6aYa2V6id9YwTY0AMCSDkwt2C0xCxrKUaYX7avQTLxxCmn9L724RcJvJOYI7_Z7UUeWz4F2");
script.setAttribute("data-currency", "GBP");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZDI0Mzg0OWY4MDUwOGUyNjE0OWI5OWEwNDc0MTY4Mjc1N2Q4N2YwNzAyOTBiMTgyMmIxODgxZmJkYjAwMzNmNHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDctMjdUMTU6MDE6MzkuNTg3WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVA4bUxZMm1fZjhUT2Y2c0JiOG9UMDdTZTVVZU9lT0VrSjhYbjRWWS1hdlBmbXVWZ1Q3dTNwc0ttUkZzTllqSlVsQjNOam9sMjdMSFFJN1BvSXR2MnJFcXV6R2ZnIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "en_GB");
document.body.appendChild(script);
} else {
var script = document.getElementById('paypal-smart-payment-script');
script.setAttribute("data-client-id", "AQWJV1Nou6aYa2V6id9YwTY0AMCSDkwt2C0xCxrKUaYX7avQTLxxCmn9L724RcJvJOYI7_Z7UUeWz4F2");
script.setAttribute("data-currency", "GBP");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZDI0Mzg0OWY4MDUwOGUyNjE0OWI5OWEwNDc0MTY4Mjc1N2Q4N2YwNzAyOTBiMTgyMmIxODgxZmJkYjAwMzNmNHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDctMjdUMTU6MDE6MzkuNTg3WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVA4bUxZMm1fZjhUT2Y2c0JiOG9UMDdTZTVVZU9lT0VrSjhYbjRWWS1hdlBmbXVWZ1Q3dTNwc0ttUkZzTllqSlVsQjNOam9sMjdMSFFJN1BvSXR2MnJFcXV6R2ZnIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "en_GB");
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66a514f88dba3', 'paylater', 'paypal', 'rect', 'gold');
});
} else {
renderPayPalButtons('66a514f88dba3', 'paylater', 'paypal', 'rect', 'gold');
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66a514f88dba3', 'paypal', 'paypal', 'rect', 'gold');
});
} else {
renderPayPalButtons('66a514f88dba3', 'paypal', 'paypal', 'rect', 'gold');
}