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/0r8irkj4dv4p/plugin/3/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AW_u1fU71lz0NzE-VWeB70TpwZ3IkMidZKFFGjKWjAWtTsCFxdlI6oWp-1YQydUBpNjRtavW7UItMf3z");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiOTJiMjI2NTY0MjY3ZDljZWQ1ODBlMDc2OTRkMjIzZGE3NjQ1OGNiZWYwNjQ2ZTU3YmMzNTBkNzIwOGVjNzM0NnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMTAtMDVUMDU6MzA6MzQuODA5WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVBobFRpZXVVY3pHcm5OdlFRc3lFM2xIVUpVV2pDNE5JS0kyc2xPZHJheFFNbXo3YzBzaU91Mk15U00wc0VuYlJZLWZ3Xzl0TXhNWDE1WXh1Vm1ya2s2aW1uMU1nIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('651e49fa694bc', 'paypal', 'buynow', 'pill', 'silver');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('651e49fa694bc', 'paypal', 'buynow', 'pill', 'silver');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('651e49fa694bc', 'paylater', 'paypal', 'pill', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('651e49fa694bc', 'paylater', 'paypal', 'pill', 'gold');
});
}