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", "SGD");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiODEzYWIzMGM4ZjVkMTg0MGQ4MTUzNTBmYzVlYjc2YTI3ZTdhOTNjZjIxY2JhOTZkYzJmOTdmYjcxYjAzZTYyMHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMjhUMTc6MDc6MTMuNDE5WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5YRG15dW1keE55WGpFb09mOElhWkMzemJvR1ROWFRxRW9OMmJCTC1PSW10bVpLczVrUFV1bTVfX0phOFkyQXZ5THZLTU16UlFicXRkclgzZTNQY1gyUUxFNnh3In19");
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", "SGD");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiODEzYWIzMGM4ZjVkMTg0MGQ4MTUzNTBmYzVlYjc2YTI3ZTdhOTNjZjIxY2JhOTZkYzJmOTdmYjcxYjAzZTYyMHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMjhUMTc6MDc6MTMuNDE5WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5YRG15dW1keE55WGpFb09mOElhWkMzemJvR1ROWFRxRW9OMmJCTC1PSW10bVpLczVrUFV1bTVfX0phOFkyQXZ5THZLTU16UlFicXRkclgzZTNQY1gyUUxFNnh3In19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6605a4c439390', 'paylater', 'paypal', 'rect', 'blue');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6605a4c439390', 'paylater', 'paypal', 'rect', 'blue');
});
}