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/h50oisx8lord/plugin/22/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "ARlkJrJ9BKZP9QoyH9szi0jcUSFHszG71ozorW-N9mBxp86U4-2STKl1wqGx3B5K-ZlFTfdBt7xe3rwe");
script.setAttribute("data-currency", "GBP");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYzMxYmVmY2YzZmFjZmNiNTVlZWQ5NWFhNGQzNjQzODQ0MWMyNmM0MDg4ZjZiYWMxNDZiZWMxYjkwNjFlZDViY3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMjlUMTM6NTM6MzguNTA2WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVBIRWRCQ25ZTjB1TDdtakFXeWV5dDR5OWFkNGJtSUh2VXdoWVlDSnd4SGJqZ3psSXE1dkUzdXppZ0pwSDJPZ19vVXNCRlYzZTloMzVUcS16bklGSUtnSVNFaXZBIn19");
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", "ARlkJrJ9BKZP9QoyH9szi0jcUSFHszG71ozorW-N9mBxp86U4-2STKl1wqGx3B5K-ZlFTfdBt7xe3rwe");
script.setAttribute("data-currency", "GBP");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYzMxYmVmY2YzZmFjZmNiNTVlZWQ5NWFhNGQzNjQzODQ0MWMyNmM0MDg4ZjZiYWMxNDZiZWMxYjkwNjFlZDViY3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMjlUMTM6NTM6MzguNTA2WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVBIRWRCQ25ZTjB1TDdtakFXeWV5dDR5OWFkNGJtSUh2VXdoWVlDSnd4SGJqZ3psSXE1dkUzdXppZ0pwSDJPZ19vVXNCRlYzZTloMzVUcS16bklGSUtnSVNFaXZBIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "en_GB");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6606d34ad01c1', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6606d34ad01c1', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6606d34ad01c1', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6606d34ad01c1', 'paypal', 'buynow', 'rect', 'gold');
});
}