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/2ibmq9cykoef/plugin/4/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AWuJ0IL8f4ouSVyiSoanLpENLz1zU-mMuviiLsPAUG3o7URzDoLu9i2mqIDU04cQk1iBove3arrzqu4Z");
script.setAttribute("data-currency", "MXN");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNGVlMTk0ZDY2NjAwYzNlMTFiN2M2MTJmOTQwMzhiNDM0NjE4ODRkM2E5MzIyOTBhNTI3Yzk2YmUwNjlkNzdlNXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMjlUMTE6MTM6MDMuNjkxWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVA5N3lSWnRncDdIbWhid2MtZGlLNVl6anVFRTZJSWxwZ0JRaGxNaXZYaENnUUVrMjNtUDVHc3NSUVFBNnBLSWFwNkQ5RWJHNlVWUlZsVzJybk5XSVBXWDNYb2xnIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
} else {
var script = document.getElementById('paypal-smart-payment-script');
script.setAttribute("data-client-id", "AWuJ0IL8f4ouSVyiSoanLpENLz1zU-mMuviiLsPAUG3o7URzDoLu9i2mqIDU04cQk1iBove3arrzqu4Z");
script.setAttribute("data-currency", "MXN");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNGVlMTk0ZDY2NjAwYzNlMTFiN2M2MTJmOTQwMzhiNDM0NjE4ODRkM2E5MzIyOTBhNTI3Yzk2YmUwNjlkNzdlNXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMjlUMTE6MTM6MDMuNjkxWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVA5N3lSWnRncDdIbWhid2MtZGlLNVl6anVFRTZJSWxwZ0JRaGxNaXZYaENnUUVrMjNtUDVHc3NSUVFBNnBLSWFwNkQ5RWJHNlVWUlZsVzJybk5XSVBXWDNYb2xnIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6606a58366d49', 'paylater', 'paypal', 'rect', 'blue');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6606a58366d49', 'paylater', 'paypal', 'rect', 'blue');
});
}