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/75gc8x4cwdif/plugin/12/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AbPx8b-aYxRoODCt1QwHLdbNfmL7FacwgxToFQyUgRLWp1X059PlZXvj2j_jCWgsetTs9_6q-N1oGbmA");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNTY1ZmQ5NzFjMGQ1N2ZkNGNlNDc2MzkwZmMxODEyZjRkOTUzNWRhNTBjYzhlYWIxYjY5MjkxZTQyMTJkMWRlYnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMTEtMDNUMDA6MDM6NDMuOTI0WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU1STW1KNXJJMVJCd3MwRkFqN0l1M2o3OXZwZUY2OWRMU3VJQnQtejJxLXhyMmhHNlIzZzFQbk9GTDFyNldKbFNEclo4Y3AwS0ZlR01DY01vYTlUN1pOMEFmSUpRIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6726cb7eaa2b4', 'paylater', 'paypal', 'pill', 'black');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6726cb7eaa2b4', 'paylater', 'paypal', 'pill', 'black');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6726cb7eaa2b4', 'paypal', 'buynow', 'pill', 'black');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6726cb7eaa2b4', 'paypal', 'buynow', 'pill', 'black');
});
}