Kasse
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/l2wllvawfiyx/plugin/1/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AXwEEf_JYKvJmwVxbCObooJfe0pdBLZPP-A5E92m9L24popxlt1l2FWn8Gwwa8bWpW5VkyI3dhAJw1ab");
script.setAttribute("data-currency", "KES");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYTNjNDhhYWU2NmI0ZjlhNGEwZmM4MGNlM2QwYmNiYWE1MjJiMDg0YWY3NmU5MDg1ZjVjZmU4ZDc5NzFlMTgwNXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDQtMjVUMTA6MzY6MTkuMjk1WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5PU3VSQXRqd3RYN2dkZlJxRDh6Qi1nbmpIeVpsZldJQllPa0dfYkV2ZGFacEZGQlNFS1pFM3BlNkYyNVRYR3Q0alJNckhSRVV0YkVzTFo2NTZyWGppR3VKU2xRIn19");
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", "AXwEEf_JYKvJmwVxbCObooJfe0pdBLZPP-A5E92m9L24popxlt1l2FWn8Gwwa8bWpW5VkyI3dhAJw1ab");
script.setAttribute("data-currency", "KES");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYTNjNDhhYWU2NmI0ZjlhNGEwZmM4MGNlM2QwYmNiYWE1MjJiMDg0YWY3NmU5MDg1ZjVjZmU4ZDc5NzFlMTgwNXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDQtMjVUMTA6MzY6MTkuMjk1WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5PU3VSQXRqd3RYN2dkZlJxRDh6Qi1nbmpIeVpsZldJQllPa0dfYkV2ZGFacEZGQlNFS1pFM3BlNkYyNVRYR3Q0alJNckhSRVV0YkVzTFo2NTZyWGppR3VKU2xRIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('662a3eb9dc84e', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('662a3eb9dc84e', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('662a3eb9dc84e', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('662a3eb9dc84e', 'paypal', 'buynow', 'rect', 'gold');
});
}