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/2qy7kqu8nmyu/plugin/1/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AWp-owJN-dwTv9x8wmY61gkLO7KkyHqJnoETVoAPrhfrVwYTh4fYw92kdBu_3AJhLszFn3BndcdhCAro");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZDliMjdmMTRjYWJkMTM4NGRjZTI2MzJiZTM5NjlkZTNmYzE2MjgzYzBlMjE3Y2IwNTcxOWZiZWVhOTFkNjNlNHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMTAtMTFUMjE6Mzc6NTYuMjg4WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVBaS21uQm8xUGtQc2QtZDFVcEZmcktiOE82cEtVeEd3Rl9GU1Z4a0t6MmlFYTQ5cmx1WEw1aUREUE1WaGhXbVllSUFOM3RhVDRlMnpxdjVoMVgzSDJRTFgtZG1RIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6709a4af6be4f', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6709a4af6be4f', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6709a4af6be4f', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6709a4af6be4f', 'paypal', 'buynow', 'rect', 'gold');
});
}