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