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/e3gibhj4y2bw/plugin/1/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AWVBKTWE2nHTzA5A_Q-YyR6BpOI7FU14XTb8i8DHVbI8oNKBgsSS0WF2o6NL36drGIFQCYhdFBtNlif5");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNjdlZDY0NjNkMTk3NjY2ODQ1NTMxOWI1NTgwODJjYmJlYTFlOWIwNzUzZmZmYmE2ZDkwZDk4YWY3NWZiMzU5NXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDYtMDZUMDY6MzI6MTAuMDEyWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU1oVlRYR3R5ZXd4Nkl4OWJpMVZ0YUJHNW9lRFBmdVhZTXFVWFZwSU5RRjlITDJldnZ0bDc4ZU5SUFVyYnNYaEp4UXZMcDVPU25sQ0o0VDhHdTdTdG9zV1d4OV9nIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
} else {
var script = document.getElementById('paypal-smart-payment-script');
script.setAttribute("data-client-id", "AWVBKTWE2nHTzA5A_Q-YyR6BpOI7FU14XTb8i8DHVbI8oNKBgsSS0WF2o6NL36drGIFQCYhdFBtNlif5");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNjdlZDY0NjNkMTk3NjY2ODQ1NTMxOWI1NTgwODJjYmJlYTFlOWIwNzUzZmZmYmE2ZDkwZDk4YWY3NWZiMzU5NXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDYtMDZUMDY6MzI6MTAuMDEyWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU1oVlRYR3R5ZXd4Nkl4OWJpMVZ0YUJHNW9lRFBmdVhZTXFVWFZwSU5RRjlITDJldnZ0bDc4ZU5SUFVyYnNYaEp4UXZMcDVPU25sQ0o0VDhHdTdTdG9zV1d4OV9nIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('647edf6fae49c', 'paylater', 'paypal', 'pill', 'silver');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('647edf6fae49c', 'paylater', 'paypal', 'pill', 'silver');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('647edf6fae49c', 'paypal', 'checkout', 'pill', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('647edf6fae49c', 'paypal', 'checkout', 'pill', 'gold');
});
}