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/0zef0kd5dbv8/plugin/2/paypal/js/smartPaymentScript.min.js";
script.setAttribute("data-client-id", "AUcKPwY3sQTidz4ro72hrZXQB2XSOFHKMMW3DUsWcWLZiZP4y1ffLG9HyimN2xP9bWYTNv55b1vrs4go");
script.setAttribute("data-currency", "GBP");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYzRjNGYzZDliZDY1ODY1NDFlZDg0NDcwOWE4MjQ3YmNjN2YyYTcwYzg5NzFhYmM3MGQ5ZTI2ZmY2NWY4ZTdmOXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDQtMjNUMDU6Mjk6MzQuODA5WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9YZjhMOGpwalFMM0RiQjg4enhONVNndlRRVEFCR1UyWnZ0WHZZRVRKMDlOY1lZVzU1Wng2UVA5Q1N0Nm9oQWduaVVUVGNfSlVpT1ZBVFNsRElYWTRCTEtvVXhBIn19");
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", "AUcKPwY3sQTidz4ro72hrZXQB2XSOFHKMMW3DUsWcWLZiZP4y1ffLG9HyimN2xP9bWYTNv55b1vrs4go");
script.setAttribute("data-currency", "GBP");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYzRjNGYzZDliZDY1ODY1NDFlZDg0NDcwOWE4MjQ3YmNjN2YyYTcwYzg5NzFhYmM3MGQ5ZTI2ZmY2NWY4ZTdmOXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDQtMjNUMDU6Mjk6MzQuODA5WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9YZjhMOGpwalFMM0RiQjg4enhONVNndlRRVEFCR1UyWnZ0WHZZRVRKMDlOY1lZVzU1Wng2UVA5Q1N0Nm9oQWduaVVUVGNfSlVpT1ZBVFNsRElYWTRCTEtvVXhBIn19");
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('662747795b884', 'card', 'buynow', 'rect', 'black');
});
} else {
renderPayPalButtons('662747795b884', 'card', 'buynow', 'rect', 'black');
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('662747795b884', 'paylater', 'paypal', 'rect', 'gold');
});
} else {
renderPayPalButtons('662747795b884', 'paylater', 'paypal', 'rect', 'gold');
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('662747795b884', 'paypal', 'buynow', 'rect', 'gold');
});
} else {
renderPayPalButtons('662747795b884', 'paypal', 'buynow', 'rect', 'gold');
}