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/z2h9l54m7125/plugin/10/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "ATm-jgo75B2Pc4_08iKHnifY43-l__uek5DWr5nbZpbuBh-jjRWNTtyqGlt0itaaQc0Gs3yuwVnzjZXP");
script.setAttribute("data-currency", "IDR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiN2NhZDViMjBmZDYxZjA1ZDNiNmJlMzE0YjkzMzI4NTdkODY1YTkxMmU1ZWFjMTM1YzE0Mjc2MWFmYjFlMzc4MnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMTEtMDNUMjM6NTg6MjYuOTU2WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9xcU1WdnR0M29KX2p2U01oQ3gwbzNDcThjWE5QUFNwc2JjMWRMc2JoNTBfcWRrMk9iRDdvYkVMWmxlNmR1MkdzUkc3S2xReVNrUzBEYm43RDR1YzZ1Z0xPRmdRIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6545892294e81', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6545892294e81', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6545892294e81', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6545892294e81', 'paypal', 'buynow', 'rect', 'gold');
});
}