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/2gd8upwafncg/plugin/7/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "Ac28TxcdfdirT6xIoB7U9MvetvVFnxpXEoFWno8pvTdG_re9osTLdE16LUnFpkDHDcyuHqMutW1jQ77j");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYzE0MjFkN2YyOTY0NTY2N2ViNGI0MTkyNjE0OTY4OWNmMDFkNWU4ZTg3NTEzODZhYTA2NDk0ZjQ3M2FmNzEwNXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDMtMjVUMTk6MzM6NTUuMTc0WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU1KbUdYTW5zZi11dmNiM29DZ0V3UklNOWhDSDFOV3QzRGMtQ1U5RlZ4emkxc0VkdjZ6bTVwQ01tLU1OTS03ZjV5NHdzbnYxWFZiY1B3RURkUXVuTEdyXy1Uay1nIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "en_GB");
document.body.appendChild(script);
} else {
var script = document.getElementById('paypal-smart-payment-script');
script.setAttribute("data-client-id", "Ac28TxcdfdirT6xIoB7U9MvetvVFnxpXEoFWno8pvTdG_re9osTLdE16LUnFpkDHDcyuHqMutW1jQ77j");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYzE0MjFkN2YyOTY0NTY2N2ViNGI0MTkyNjE0OTY4OWNmMDFkNWU4ZTg3NTEzODZhYTA2NDk0ZjQ3M2FmNzEwNXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDMtMjVUMTk6MzM6NTUuMTc0WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU1KbUdYTW5zZi11dmNiM29DZ0V3UklNOWhDSDFOV3QzRGMtQ1U5RlZ4emkxc0VkdjZ6bTVwQ01tLU1OTS03ZjV5NHdzbnYxWFZiY1B3RURkUXVuTEdyXy1Uay1nIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "en_GB");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('641f59c737677', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('641f59c737677', 'paypal', 'buynow', 'rect', 'gold');
});
}