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/a018wp6dam26/plugin/2/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AdJngWaBd8AohIvCIbVDQrHIvFhjKgQAW3DOWDlRFDwd_5FzrYr_3-aZGQ9G0q315G0ru14suGGxhoC4");
script.setAttribute("data-currency", "GBP");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMGJlMWI0MDk3Y2FlMTlkYTE5YjgwY2MzM2FmYjNiOTJhN2NlMTQxYTk2MTAyNTAxM2QxOGVhNTM4YmYxOGZjZHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjUtMTEtMjlUMTg6NTU6MjAuNTQyNTU2NzMyWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU1UdGJ4SWhDOHJ2bkZRUHZ5RWp0c3JnYV9pVEtmZlR3M0UxU2c2VWgtT29HdF83aTN4RmQ1M3hkMHU1NThaV1NiZDRrS2JJYm5yS0FLYTFiMmktbmtSQXJOZ3V3In19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "en_GB");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('692b419c0eeef', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('692b419c0eeef', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('692b419c0eeef', 'paypal', 'paypal', 'rect', 'silver');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('692b419c0eeef', 'paypal', 'paypal', 'rect', 'silver');
});
}