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/tz3npe0yiq4v/plugin/17/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "ASEPCrZQVEgMZa5av0Teq0b6UY8Lw8XUrfj6y-BTj-pPI2nhNZZco84aunl2zSTfao3mAL4TWuoIxd0J");
script.setAttribute("data-currency", "GBP");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZGJlNTU4ZjliOWE1MGU1MjYxM2I0NmExMThiY2M2ZGQzMzNmYTdiMWU0OGI4MzdiMTY3NGQzYzIxOTAyYzM5Y3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjUtMDQtMDRUMTY6NTI6NDguMzc0OTUyODEwWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVBwS3h0MmlrQmhoU3BudDl2dTd2VzV1eTJuTS11NVFLOVB4NFB6dFNNNktZQlJuLVMxNU5BMmtLVnd2b1FEZEl2ck0xdmxFQjNQYTR0MTV1NTdSZnB4RDNJZ253In19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "en_GB");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('67f013b2c070e', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('67f013b2c070e', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('67f013b2c070e', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('67f013b2c070e', 'paypal', 'buynow', 'rect', 'gold');
});
}