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/5248o0ngljrd/plugin/28/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AWo9EvJb5DLS6WOOoE_QXzn-AycIX2gZfgnjPauw8rLn7PlEdP6Q69OPUSm5a82DPq1EOsoUZ6E1bk-_");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMWQzOGYzZGY1ZjcwZjg1NmE4ZDQ3OTA5M2I2ZDkxMGI5Zjk3ZmQ1NzBkODkwOTVmMjI3MGFkOWY5ZjE2MGJlYXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDMtMDNUMTI6NTE6NDQuMzU4WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU1yR0MwOW9CZ0RjS19TN0RHUUJmZWlubGJKZl9rZXAtR0dzQ1ZmSkxuYklVbDFTdHNFbEtjUHdlVWJOTnZPMmZTVVgwVEJXT2FCMTExR2ZWRnpIdWY1WkNMZFVBIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "it_IT");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6401f3c91046c', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6401f3c91046c', 'paypal', 'buynow', 'rect', 'gold');
});
}