if(!document.getElementById('paypal-smart-payment-script'))
{
var script = document.createElement("script");
script.type = "module";
script.id = "paypal-smart-payment-script";
script.src = "https://cdn03.plentymarkets.com/d461sb89lt2h/plugin/21/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AYWarMBvD5NssSME1sCajtY02yygzocIfQbl7FIdTecN4qLsm5lOnX1vp1fLlwAJcPzQDNOcRsfbI9VW");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYzQzMGM2YjAzODRiZWZmNjc0ZWY2MDI0OTQ0MTc5MjEyNjRkYTQ4MDhjOTk3MjYwZWMwM2JlOTc0MjJhYjE0MHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDYtMDNUMjE6MjI6MTEuODgzWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVBCV2lSX2xiMHN6ME1Jb2ZwQXNXSWFNVElaaFFGZzRPVUl1NGxnWnFGVFdEaXppc2syUjRsUVI1NWFlVjhheWxfM1M1RzlpbU9ZdEtNYmV0X2k0XzFiNTFyV1d3In19");
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", "AYWarMBvD5NssSME1sCajtY02yygzocIfQbl7FIdTecN4qLsm5lOnX1vp1fLlwAJcPzQDNOcRsfbI9VW");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYzQzMGM2YjAzODRiZWZmNjc0ZWY2MDI0OTQ0MTc5MjEyNjRkYTQ4MDhjOTk3MjYwZWMwM2JlOTc0MjJhYjE0MHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDYtMDNUMjE6MjI6MTEuODgzWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVBCV2lSX2xiMHN6ME1Jb2ZwQXNXSWFNVElaaFFGZzRPVUl1NGxnWnFGVFdEaXppc2syUjRsUVI1NWFlVjhheWxfM1M1RzlpbU9ZdEtNYmV0X2k0XzFiNTFyV1d3In19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('647bb55c2923b', 'paylater', 'paypal', 'rect', 'white');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('647bb55c2923b', 'paylater', 'paypal', 'rect', 'white');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('647bb55c2923b', 'paypal', 'pay', 'rect', 'white');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('647bb55c2923b', 'paypal', 'pay', 'rect', 'white');
});
}