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/0b49v6hm4i1m/plugin/8/paypal/js/smartPaymentScript.min.js";
script.setAttribute("data-client-id", "AVkyHrCZRXARjKIcVbCdC6FJHwwc7U2x0-q3HrDcqwbYaEZRFBFTPW8-iYtEZLAMy2zj1qC03pBmqkbx");
script.setAttribute("data-currency", "ZAR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYWEzMGQ5ZTJhMjcxYzgxM2E3OTI1YmIxMWVlNzhkZTdiYzM1NDQ5N2I0ZjE4NTFlYzZmZGEzZTdiMmRlMmQ2ZXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDQtMjZUMTI6MzM6MDIuNzczWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9oTWFYcnIzVUFIek9QQ05JRjlMdnBraGliX0lPMjV0MDU4YWhHbkw3WUwwMmp6bEF3WC1aS08tSThJaG0zREtKRUs3VmhqMzhxU2x2emp1RXV4QXRaRWJybXZ3In19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
} else {
var script = document.getElementById('paypal-smart-payment-script');
script.setAttribute("data-client-id", "AVkyHrCZRXARjKIcVbCdC6FJHwwc7U2x0-q3HrDcqwbYaEZRFBFTPW8-iYtEZLAMy2zj1qC03pBmqkbx");
script.setAttribute("data-currency", "ZAR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYWEzMGQ5ZTJhMjcxYzgxM2E3OTI1YmIxMWVlNzhkZTdiYzM1NDQ5N2I0ZjE4NTFlYzZmZGEzZTdiMmRlMmQ2ZXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDQtMjZUMTI6MzM6MDIuNzczWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9oTWFYcnIzVUFIek9QQ05JRjlMdnBraGliX0lPMjV0MDU4YWhHbkw3WUwwMmp6bEF3WC1aS08tSThJaG0zREtKRUs3VmhqMzhxU2x2emp1RXV4QXRaRWJybXZ3In19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('662ba6ad8ed9f', 'paylater', 'paypal', 'rect', 'gold');
});
} else {
renderPayPalButtons('662ba6ad8ed9f', 'paylater', 'paypal', 'rect', 'gold');
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('662ba6ad8ed9f', 'paypal', 'buynow', 'rect', 'gold');
});
} else {
renderPayPalButtons('662ba6ad8ed9f', 'paypal', 'buynow', 'rect', 'gold');
}