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/4djpivj6quwl/plugin/12/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "ASRtasdJm93lV_vLuE-3Fnm8sCBeDjLVKq5ZfTpPgcYIDSRPT7B1OW2kJlHXYvJuCaub_1F8Me1pLQqT");
script.setAttribute("data-currency", "MXN");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZGViYTI4MmNjNzFkYjI5OWI5Yzc2ODI2MzJhNTRiNjU3YjgzYjE5NjI4MjNhOWQ1ZjVmYzQ0ZmMzYWJkZTgyYXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDQtMDhUMTc6MTY6MDUuNDk2WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU83dHRxcW9ndG91RktxTko1TmFZdGFTdUZTRkQtdlJ2Q0VGS2F6b1BqWFFZUjdlMXl5cXI3bnlZbFpEUVJDVXJnODJKMVNrYUJpalp5cTZfak9DNzFlc3k4RHlRIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
} else {
var script = document.getElementById('paypal-smart-payment-script');
script.setAttribute("data-client-id", "ASRtasdJm93lV_vLuE-3Fnm8sCBeDjLVKq5ZfTpPgcYIDSRPT7B1OW2kJlHXYvJuCaub_1F8Me1pLQqT");
script.setAttribute("data-currency", "MXN");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZGViYTI4MmNjNzFkYjI5OWI5Yzc2ODI2MzJhNTRiNjU3YjgzYjE5NjI4MjNhOWQ1ZjVmYzQ0ZmMzYWJkZTgyYXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDQtMDhUMTc6MTY6MDUuNDk2WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU83dHRxcW9ndG91RktxTko1TmFZdGFTdUZTRkQtdlJ2Q0VGS2F6b1BqWFFZUjdlMXl5cXI3bnlZbFpEUVJDVXJnODJKMVNrYUJpalp5cTZfak9DNzFlc3k4RHlRIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('66142fc43f10b', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66142fc43f10b', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('66142fc43f10b', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66142fc43f10b', 'paypal', 'buynow', 'rect', 'gold');
});
}