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/5z18360lb8fk/plugin/28/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AdDJhKDwOhtnG13dtFjgpwF66FLvK2zXxLZ7YgugAgf7B9SIOO5Z7stiCN-fqFaCpJ52USEDe8l_uL90");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYjIzZTQ4ZTEwM2U5ZmM0YjU3M2FmMzUwYjI5MzE4ZDM3M2Y2ZWRmNDU0ZDEyY2RiNzU1YmViZGE1YWQ5ODYxNnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDUtMTlUMDE6NDY6MTIuMjAyWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9vXzQ0cGlTZDBGeWZ0QXB6VklqRVpGa0QxZ0RYVncxb05OT1pMcGJiaVE5WU1Pa19jbVhPeTJGNklsbXducE5udTBTb0YtNXpsYVFZX3dESEh4QzhQV2ZFOUdnIn19");
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", "AdDJhKDwOhtnG13dtFjgpwF66FLvK2zXxLZ7YgugAgf7B9SIOO5Z7stiCN-fqFaCpJ52USEDe8l_uL90");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYjIzZTQ4ZTEwM2U5ZmM0YjU3M2FmMzUwYjI5MzE4ZDM3M2Y2ZWRmNDU0ZDEyY2RiNzU1YmViZGE1YWQ5ODYxNnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDUtMTlUMDE6NDY6MTIuMjAyWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9vXzQ0cGlTZDBGeWZ0QXB6VklqRVpGa0QxZ0RYVncxb05OT1pMcGJiaVE5WU1Pa19jbVhPeTJGNklsbXducE5udTBTb0YtNXpsYVFZX3dESEh4QzhQV2ZFOUdnIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6466d6a1d5ea3', 'paylater', 'paypal', 'rect', 'silver');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6466d6a1d5ea3', 'paylater', 'paypal', 'rect', 'silver');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6466d6a1d5ea3', 'paypal', 'buynow', 'rect', 'silver');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6466d6a1d5ea3', 'paypal', 'buynow', 'rect', 'silver');
});
}