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", "KES");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMmEwNzIxYjM1MDM5OTFkNmU2NTdmNDdjYTQ0NzIxOGJmNTIwMGM0YTFlNTlmMDM3OTg3NWQ0N2Y5NmYyMmJhNXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMjFUMDc6MzM6MTYuNTc5WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9IZHlRRnRKZFRVMVgtS3N5WTczWVhoMHR0Y0c0LTViVk85dXJiZFV6YUI3T2x5ZTAybzRLdHpSQ2EzV2x1R1ZMN3A4OG5IdUtqSGluRnp3QlBTa1h6alAxaWlBIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('65fbe2bc2dc15', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('65fbe2bc2dc15', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('65fbe2bc2dc15', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('65fbe2bc2dc15', 'paypal', 'buynow', 'rect', 'gold');
});
}