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/2ibmq9cykoef/plugin/4/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AWuJ0IL8f4ouSVyiSoanLpENLz1zU-mMuviiLsPAUG3o7URzDoLu9i2mqIDU04cQk1iBove3arrzqu4Z");
script.setAttribute("data-currency", "AUD");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNjVhMjdjOTAyOWM1NDI1OTg0NGNmODY2NzU4ZTI2ZjM2NGFiM2NkYjkxOTM4ODBkODkxYmVhMzk1YjI5Y2U3ZXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMjhUMTQ6MDc6MDEuMjAwWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5DbEIwdG5DV2gwVjRsYzhMVGh3cm9HUW9oaXRDcUhDR1FHWHFkRGhpRnI4cnlWTUxTN0hwS0dLaWd3a2J2TlhEYmR6cFpFZzF5ZWl5SGk2a09Pcy1BOERmaGVBIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
} else {
var script = document.getElementById('paypal-smart-payment-script');
script.setAttribute("data-client-id", "AWuJ0IL8f4ouSVyiSoanLpENLz1zU-mMuviiLsPAUG3o7URzDoLu9i2mqIDU04cQk1iBove3arrzqu4Z");
script.setAttribute("data-currency", "AUD");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNjVhMjdjOTAyOWM1NDI1OTg0NGNmODY2NzU4ZTI2ZjM2NGFiM2NkYjkxOTM4ODBkODkxYmVhMzk1YjI5Y2U3ZXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMjhUMTQ6MDc6MDEuMjAwWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5DbEIwdG5DV2gwVjRsYzhMVGh3cm9HUW9oaXRDcUhDR1FHWHFkRGhpRnI4cnlWTUxTN0hwS0dLaWd3a2J2TlhEYmR6cFpFZzF5ZWl5SGk2a09Pcy1BOERmaGVBIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('660582dfe2a84', 'paylater', 'paypal', 'rect', 'blue');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('660582dfe2a84', 'paylater', 'paypal', 'rect', 'blue');
});
}