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", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNzkwNDU4YjM4ZTZkOGJjZTJmYWIyY2FhY2M4YTEyMDY1NTVlOTA5M2I5MTQ3MzZkYWQzZTFjZjE5NTBhZGYxYXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDQtMjVUMjM6MjQ6MjEuNDgxWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU50TllmemtBOE8xT0J6VkY0RnZlckE1QWtISnI5M3NyQl9rOEFCQ0dkWnhzYU83a3VlTFg2VU5lUFV5SVVJTENGWUhmZXJ6akthSWd3QlF6bGx1aEI0dG51Y1VBIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "es_ES");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('662ae624d4517', 'paypal', 'buynow', 'pill', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('662ae624d4517', 'paypal', 'buynow', 'pill', 'gold');
});
}