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/n5ef6hkj5oe6/plugin/3/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "Aa4fROmwgCE0sPVsoiDfFs62ogfuxC38eY8QFaOVCSLfq57WABBuxUKrDDLK-Gfg7tBPg0X-3iYBCv-J");
script.setAttribute("data-currency", "ARS");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZjc1NGVlOGM4ZTI4YTRlYzU1YTBjMDdlYjRlNGE1YzE1NDZhMTk5MDIzNTliYmFjMDgxMDk3MzVlMWExNDA1YXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDMtMDhUMDY6MTE6NTkuNTUzWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU1Ic29hb3F1bTRMNGNPMTY1OTFVT29Bc3ZYbGRDYWJMamFxNzV1ZGtGSU9hRUVYS0lLQ0VYbVFsNVpsQzRvWEpyYVdtY2JIYTJmZnc1a3Y0QVpCYkZ5SEhMMWRnIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('640833fcee367', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('640833fcee367', 'paypal', 'buynow', 'rect', 'gold');
});
}