if(!document.getElementById('paypal-smart-payment-script'))
{
var script = document.createElement("script");
script.type = "module";
script.id = "paypal-smart-payment-script";
script.src = "https://cdn03.plentymarkets.com/o5q54sllbt89/plugin/8/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AQis2o1PITJJGhm0ZdcKoeg-Zpg8RfNDZJVTVB08acm7WYKW7COukdu1U-TtVBVzIqM2xWT6wAzDGyzd");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNTMwNDBjZTBmNTYwNTU3NTI5OWJiM2MxMWJhOGZlYjU1Yjc4ZGE2YTUwZDY2N2E0ZDgwZmRkZmI1ZTQ2ZjY3YXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDQtMjZUMTI6MTM6MDkuMjEyWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU52UUk3WWd3R1VrZ01qRkFlYnYyMzFobUY3OGM5SEFtY1MtVHl3THFTdDA3V2xseEY3Umkyenk0aDZsZzVpQ2d2Ny1NMlNOZnJFclZOdFp4a3dXQmFGOXZ6VHNRIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "it_IT");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('662b9a54a5ee8', 'paypal', 'buynow', 'pill', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('662b9a54a5ee8', 'paypal', 'buynow', 'pill', 'gold');
});
}