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/cjzy99lu9zd1/plugin/40/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AWDVnnHUb6B5ACJ6nzhNV9HBd_b_rzOYV-1RmrSwLHwNugB6JoAoog_JUKa5v4iCBJXXSi9kXavwQpEL");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNWY2YWMxMTdjNjNkZWI0MjliOWZlNzM5M2JiNmYwNjI3MDkzNmQ2MWQ4MTYxMWQ5MmRhNWM3MmZiNTUyMzNiMXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMTItMjFUMTI6NDk6MTMuOTM2WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU1XS1RrUmxYS3FHUkp2c0NMOU5pREdXMy1HTkxJay13THc5WTZOX01HdVh0WUYxM3hvbU9xbVMxY3F3T3EyZm1Id1BEVjlEZXNXOFN3MGFhbXA0MFkzYjZZT1BnIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6766c17bf1ee0', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6766c17bf1ee0', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6766c17bf1ee0', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6766c17bf1ee0', 'paypal', 'buynow', 'rect', 'gold');
});
}