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/r3pmentklgg2/plugin/87/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AYKg1tEqGJHw1m6M869hRpzbgVlnIBb-V_iy7SwmxiPwuQU4jE-mUlshQ2OCMYz3wfkl7PTsWMtI-zT6");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNjU5NmVhOTNjMmEyNDMxYjhjODdiZWYwY2M4ZjgyZjFiYjJmNzBhZDM3MTQwNzQ2OGI2ZWIwYjE4ZTQ5M2I0ZXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDItMDZUMTk6MTI6MTguMzc3WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9XSWNoMW5KWGx3YU9sVWFFaUo1Y0JGNlQtVmtWRl9EOU56aGpmTzhuQUh4ejlkUnJWdHRvY21NVEh1SnJtS3lPTV9FbHJ3OEZFMnlBUnRBblllYm90bW9YS2JBIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('63e15d9a2f496', 'paylater', 'paypal', 'pill', 'blue');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('63e15d9a2f496', 'paylater', 'paypal', 'pill', 'blue');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('63e15d9a2f496', 'paypal', 'pay', 'pill', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('63e15d9a2f496', 'paypal', 'pay', 'pill', 'gold');
});
}