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/140n2eyfgmvy/plugin/11/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AVbjmd5wmafYHLBeHa5JbPYEwgrR0fswtRtyY6rgn1hRCl-Qm17nxnIhUNzvwwUIXTQgrHlO0JcffjJG");
script.setAttribute("data-currency", "NZD");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiY2ExNTZjYWQ0YmMyYmFlM2I3MDY3Njc4YzllNmQ0MTZmNzQ0NDZjYWZhYTlhMGIxOTYyYWQxZDhhOTg4NGMxYnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMTAtMDRUMTg6MDQ6MTIuOTU2WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVBLTXNGSG5zaUg2MWlTNmFSYUxkbWw2Vi00M3FBdUttTmFudTlpcE41emJNY1ZmR3djUHI2QWs4YWtSMFNEX0xFZWIxai1xVXc4NUpXeEVZTlU2Mmg5ZE9qem9BIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('651da91c79c56', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('651da91c79c56', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('651da91c79c56', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('651da91c79c56', 'paypal', 'buynow', 'rect', 'gold');
});
}