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/irmd0ca807c9/plugin/2/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "ATmZ8gsKLGjIz47_b5oAbIYZVbCh5iGEW7VvvWOCmkMF66nTcOflxD1lWLqLWHR2qKl8sY8pyRGBY6K3");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiOGYyNjQzMmI2NDQxODIwYjA1N2ExNTZhZDExZDg0ZDM2YTYzMTNjMmViNGZmN2I2MzM0MGQyN2UwMDdlMTIxNHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjUtMDgtMjFUMDU6NTk6MjUuODM4Mzg2MjQzWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVAwd3pKSnA0T2FmNWt6amdVYnY5MnYyZFRTNFF0Skd3TEd2QVFWakM3T2NySTJHZFBUWE1BYzFzczlYLXZqWFpjWXV5VU9WNUlvZ0s5Q2t0S2RjUHd3QWVlVG13In19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "en_GB");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('68a6c2f4de09d', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('68a6c2f4de09d', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('68a6c2f4de09d', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('68a6c2f4de09d', 'paypal', 'buynow', 'rect', 'gold');
});
}