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/tz3npe0yiq4v/plugin/14/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "ASEPCrZQVEgMZa5av0Teq0b6UY8Lw8XUrfj6y-BTj-pPI2nhNZZco84aunl2zSTfao3mAL4TWuoIxd0J");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYzgyOTI1MDM1NWZkNzhmYTAwMmVkMTliZTMzMmEyNmEyZThhODViOTZhMzViNzZiY2U2NGM4YjZhYTgxMTVkNHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDctMjVUMTA6Mzk6NTIuOTU3WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5iR1JGTmtYYlcxZDI0MWI0QjV2Y0hfWW1xWEZEMWdhSFk2R1k3b2Q2VDNFQzNIN3hOTjdrTEVWUmRFVEt1R2RwRzd6V011Y3gyUzdCbE9KeW84X1RDSld4X2h3In19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('66a238a35d7ea', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66a238a35d7ea', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('66a238a35d7ea', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66a238a35d7ea', 'paypal', 'buynow', 'rect', 'gold');
});
}