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/8gpm1tc4al8c/plugin/20/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AXj48AoauWiV2deOL3pVxkvwGguQ805BqLHwtvZPnpcyd0tc-RTPIRMl8EM3wyq8htBGH7PjgE3AMnga");
script.setAttribute("data-currency", "SGD");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNGU5MTE5NTQ1OWViY2QwN2NiZWEzZTdmNTA2Y2JiODU0NWFiM2Q1NTVjYTg4NjMwNjk2ZmE1NGRjOGUzM2ZlMXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDEtMDdUMTc6NDc6NDMuOTc0WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVBicVRkU2tEV05rUHBVeUZsNks3WDhzWTRPOFRwTFNNUUl6SUZSQmx0dGtVRVgyWlgyc3dNTHg3RV9hQWR6NUNxRnJ1QmQ5OTlWdE45cjliWkw1T1VheThJZGpnIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('659ae3bf957fc', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('659ae3bf957fc', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('659ae3bf957fc', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('659ae3bf957fc', 'paypal', 'buynow', 'rect', 'gold');
});
}