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/1sa4votya23v/plugin/4/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AZm1GNUnujzE1rMUPvWgoXt3kfHcyNMu8nTCfYFHfp_heyvTTaSmcVRUioISWn-7ttBn0VOx1sA9SvIS");
script.setAttribute("data-currency", "HUF");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiY2YzM2M2YjQzZDQ3Y2E2YzFhMjRhNGEzNTIwZTBlMTQ1ZDI4NmJlZjBkNWVmOWQ2MGM5NTMyNWNmMDY4NGVhYXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDQtMjVUMTA6NDk6MzIuNzE4WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVBxUkQzVGlCSlgtM3JxaTRscDktYnBMWGNxN3VNUmV0V1FORWJKMUhqT081YmdQUXJLTmNWaFJPdXdPUEVPdms3bFFmWHBlaWlfeTd0V2JybU5JWk9IeFVHYXB3In19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('662a3cc7cd53c', 'card', 'buynow', 'rect', 'black');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('662a3cc7cd53c', 'card', 'buynow', 'rect', 'black');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('662a3cc7cd53c', 'paylater', 'paypal', 'rect', 'blue');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('662a3cc7cd53c', 'paylater', 'paypal', 'rect', 'blue');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('662a3cc7cd53c', 'paypal', 'paypal', 'rect', 'blue');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('662a3cc7cd53c', 'paypal', 'paypal', 'rect', 'blue');
});
}