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/j15t6eimx538/plugin/18/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AcuMf3FkB4zoLzhz0q_lCu8fRblAVu1CwGde_e_cfiJbyXF_TJLj-xLclNqIDXWbJYc2-jmAZj8OXPbC");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMmQ3ODZiMmU1ZGRiYzI3NjdmMzRlMjdmMGUxYWZlNTg4YjliNjUwNDIwMzVjMjBjZDYyY2ZiYTA4YzI5MjMxZnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMjlUMDY6MjM6MjkuNjIxWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU1yS3B0UWc0WnQ0eUIzeF9BOFU1Z2JqQlR1cVdSUl9qS25sYUZhMmZyajA3bk5yVmlsa3lvY0tuTVRYanc0R1Y2Y1h5TXlHTUphMTdvQ2FIREtMdy1HYUVBNUp3In19");
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", "AcuMf3FkB4zoLzhz0q_lCu8fRblAVu1CwGde_e_cfiJbyXF_TJLj-xLclNqIDXWbJYc2-jmAZj8OXPbC");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMmQ3ODZiMmU1ZGRiYzI3NjdmMzRlMjdmMGUxYWZlNTg4YjliNjUwNDIwMzVjMjBjZDYyY2ZiYTA4YzI5MjMxZnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMjlUMDY6MjM6MjkuNjIxWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU1yS3B0UWc0WnQ0eUIzeF9BOFU1Z2JqQlR1cVdSUl9qS25sYUZhMmZyajA3bk5yVmlsa3lvY0tuTVRYanc0R1Y2Y1h5TXlHTUphMTdvQ2FIREtMdy1HYUVBNUp3In19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('660660aeaf352', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('660660aeaf352', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('660660aeaf352', 'paypal', 'pay', 'rect', 'blue');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('660660aeaf352', 'paypal', 'pay', 'rect', 'blue');
});
}