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/amh0mr16ph21/plugin/32/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AY6s-GsfIeou1M2Y8Fq0oApO2ean7biydY1ANNitn3uOsli5WD12E72hwCsfWKaeXnpPE1yOV6sTNGxl");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMDQ3MGYxYmNlNDg4YTk1NWE5OGU2MzU3ZjJmZGQ1OWQxNTE5ZDU5YjYzYjM5MGEyNzM2YmYzYTMzZDNjNmZkYnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDMtMzFUMDM6MTc6NTQuODkwWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU1hUlVQM2hCX0N3SE9JaHh5M2xucUVoMjNMcndLR1Y1cVg0NmJLTy1yN1Z5UWpnU3A5eXJXZmdCMVhpVlh1NWg5SVZVQXRjN01uZklmRGxocnhzWnFSWWhDR2R3In19");
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", "AY6s-GsfIeou1M2Y8Fq0oApO2ean7biydY1ANNitn3uOsli5WD12E72hwCsfWKaeXnpPE1yOV6sTNGxl");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMDQ3MGYxYmNlNDg4YTk1NWE5OGU2MzU3ZjJmZGQ1OWQxNTE5ZDU5YjYzYjM5MGEyNzM2YmYzYTMzZDNjNmZkYnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDMtMzFUMDM6MTc6NTQuODkwWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU1hUlVQM2hCX0N3SE9JaHh5M2xucUVoMjNMcndLR1Y1cVg0NmJLTy1yN1Z5UWpnU3A5eXJXZmdCMVhpVlh1NWg5SVZVQXRjN01uZklmRGxocnhzWnFSWWhDR2R3In19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('642658ce51e31', 'paylater', 'paypal', 'pill', 'white');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('642658ce51e31', 'paylater', 'paypal', 'pill', 'white');
});
}