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/1sdc67sf6871/plugin/1/paypal/js/smartPaymentScript.min.js";
script.setAttribute("data-client-id", "AWUlkc9qQfEPvBQjZEh264GjLCszAAz8UY3ZoAj0i0SeyvtuFXR6tPJTTN1CQ64DnKtefixDsQifBmgA");
script.setAttribute("data-currency", "XCD");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMGU0MGI4M2NkNTVhMTkzOTA0YjQzYmMxZjBmYTUzNjM3YmMxNGYxZDgwYTEzNTY0ODgzNmUxZmRjYTZlM2JlMXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDQtMjVUMTI6NTQ6MTguODExWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9GUkFxZ3Y3OWM5d3gwcGlUbTlZZGN6em1nUkYxM0Y2dFp4R1NrcUphQkVQcHRER0h4ampEZ3VxTzJ4bDNiM3p3U2RaemtYcndIWndKbElQQjJMVmFFaXV5aTBRIn19");
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", "AWUlkc9qQfEPvBQjZEh264GjLCszAAz8UY3ZoAj0i0SeyvtuFXR6tPJTTN1CQ64DnKtefixDsQifBmgA");
script.setAttribute("data-currency", "XCD");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMGU0MGI4M2NkNTVhMTkzOTA0YjQzYmMxZjBmYTUzNjM3YmMxNGYxZDgwYTEzNTY0ODgzNmUxZmRjYTZlM2JlMXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDQtMjVUMTI6NTQ6MTguODExWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9GUkFxZ3Y3OWM5d3gwcGlUbTlZZGN6em1nUkYxM0Y2dFp4R1NrcUphQkVQcHRER0h4ampEZ3VxTzJ4bDNiM3p3U2RaemtYcndIWndKbElQQjJMVmFFaXV5aTBRIn19");
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('662a5f30787ad', 'paylater', 'paypal', 'rect', 'gold');
});
} else {
renderPayPalButtons('662a5f30787ad', 'paylater', 'paypal', 'rect', 'gold');
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('662a5f30787ad', 'paypal', 'buynow', 'rect', 'gold');
});
} else {
renderPayPalButtons('662a5f30787ad', 'paypal', 'buynow', 'rect', 'gold');
}