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/kz24s2gfphm4/plugin/9/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AYoH9rh4tfY0mXU1zQmJwXrQh__KScnA-19Y-9iRW9souPIBHT3rOVoaIyGnzJvJLhE_6bnpnPHN1-Z8");
script.setAttribute("data-currency", "GBP");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYWJkZDUzY2M4OWJiYTY1NjBhMTlhMmE2OTA5ZDdhMjZkZDRiZTI0NjllN2FiNjA0ZjAyY2M3YzZlODI0ZjA1N3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjItMDUtMThUMTY6Mzc6MDguNTAzWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5vSVRFem5YVTRYOEh1SE05UVp1UjlmTWdvYTNGOG9TejNqZGIteWFCNlBoRk5IWE9FdzJNMkthMER5UVRpUUw2YjdMaWVPTFBPc0NKZUk1cVdnM1l5X1NPQmN3In19");
script.setAttribute("data-append-trailing-slash", "1");
script.setAttribute("data-locale", "en_GB");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('628520b42355d', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('628520b42355d', 'paypal', 'buynow', 'rect', 'gold');
});
}