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/pvdtyofq45f2/plugin/11/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AVIp3QYDfOHUuC2DG7p--7lS4iiI2Jg9CdgbkEt0RYslHbygrI_00oWzv-1LT7VLd-AUsprnpQcYzF2Y");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMTY4MWJlY2FiZTUxMGNmMWIzZTU2ODVjYTU2MmYzYzJmODkyYTk0ODkyYTMzYThhYWQ3ZjNmMDllMzM0OGQ0MnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjItMDctMDJUMjA6MzM6NDQuNzk0WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9GR2JnVWtIYXNPT3FxQ3o5UjQ3NmJyZmR6VldMaWlZUjZLODBaV0t5SWFBbkJMaFAyNThhY044THRkbGt0X2NLTzRpYnY2NURZVkhRNHJsUG9KREFqOXlwN0hBIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "it_IT");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('62c0aba876d4b', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('62c0aba876d4b', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('62c0aba876d4b', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('62c0aba876d4b', 'paypal', 'buynow', 'rect', 'gold');
});
}