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/7woa4tw7wso0/plugin/4/paypal/js/smartPaymentScript.min.js";
script.setAttribute("data-client-id", "AZ-melK30t3uzJmH0Y8vZLMGTNhAKYm2YduDRRFvOIONjiBsznN89gbG2x-VLaIG__Qy0G3jhAVLql8O");
script.setAttribute("data-currency", "NZD");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNjhjMDYzYTYzYzIwYWI0NmEwNmE2YzQ2MDlhMGZlZTc1M2FkMzk2Yjc1NmEyZDg4ZGNkOGFlNzkwN2FhOGMxZnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMDVUMDQ6MTk6MzkuMDUwWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVBtZEdmVWd3Y1FvNFJtbGVqUFUxU1poZjdFRDYydGxsaHhnV3AzTHY1dWtIWk5NVlh4UG1YRnpZSHQ5RmhJMzIyM0JKeTZXcHRZdmRZNTVPOHdNc0tqeWMzQzRRIn19");
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", "AZ-melK30t3uzJmH0Y8vZLMGTNhAKYm2YduDRRFvOIONjiBsznN89gbG2x-VLaIG__Qy0G3jhAVLql8O");
script.setAttribute("data-currency", "NZD");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNjhjMDYzYTYzYzIwYWI0NmEwNmE2YzQ2MDlhMGZlZTc1M2FkMzk2Yjc1NmEyZDg4ZGNkOGFlNzkwN2FhOGMxZnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMDVUMDQ6MTk6MzkuMDUwWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVBtZEdmVWd3Y1FvNFJtbGVqUFUxU1poZjdFRDYydGxsaHhnV3AzTHY1dWtIWk5NVlh4UG1YRnpZSHQ5RmhJMzIyM0JKeTZXcHRZdmRZNTVPOHdNc0tqeWMzQzRRIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('65e6a783c0c0b', 'paylater', 'paypal', 'rect', 'gold');
});
} else {
renderPayPalButtons('65e6a783c0c0b', 'paylater', 'paypal', 'rect', 'gold');
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('65e6a783c0c0b', 'paypal', 'buynow', 'rect', 'gold');
});
} else {
renderPayPalButtons('65e6a783c0c0b', 'paypal', 'buynow', 'rect', 'gold');
}