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/qx0auvtfxrlg/plugin/5/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "ARBoTc_zoV8VbmkX2JQigqoBVNR2_aW_BPqA26IwoSxfPKq3zmMBKb2zeQ56GESI-8YXIEvU0WivlHG1");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZWUwMGZiZTdiNjk4Y2VjY2RkNjAzMjE4MGEwYmI0OTY3ZGE0YjcyY2ZhMTllYmI2YTVmYWYxOWUyN2QzZTFmMnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjItMDYtMjZUMTc6NTU6NTcuOTIzWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU96NTdHdHNyWmU2eWRDNmJDU0FCNGlrTmJQMnB3VmlhM2VGUFR3RDZHY3c5MF9rQkpITHpxN3ktNFAzQXJCbWlQZFEwdjVkblFGN1o1TzRpRXJILVFweDc1ZDB3In19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "it_IT");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('62b89dad7aae3', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('62b89dad7aae3', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('62b89dad7aae3', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('62b89dad7aae3', 'paypal', 'buynow', 'rect', 'gold');
});
}