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/i1gbt867zq2p/plugin/11/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AeTIEpJ6UUhEcaKc4aGweZLdMjTzg9hkMQ-6iZQ3SsI4y-w4HfPkNAeRRvetUROJLqIIDPdCDIXb1xUJ");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiOTQyMGE0ODk5ZTQ2ZmZiM2FmZTY2NmYxN2QxODVjMzkyN2Y4OTQ1MmFmMzE1OWI4ZTQwMjc2NzM5YTgxYWEyNXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDMtMjhUMTA6NTg6MjQuMzIwWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU95UlhSX25ldi1hMVlBMS1lT0JFRlZULUNiVzk3aFB5MDNmeWxwZThXRmxLYVFCRnFlRUctZ2dIWlJxTE5UQ2I4SDc0QXJiSk1Edm4tbS1zSTlZX1p0Rk5hVFZ3In19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6422d61f1f16d', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6422d61f1f16d', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6422d61f1f16d', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6422d61f1f16d', 'paypal', 'buynow', 'rect', 'gold');
});
}