Embed kit
Put this HTML code on the page where customers will choose the payment method, or the page that will redirect to the payment page. This API will automatically redirect merchant page to the payment page. Some parameters need to be parsed to use this redirector. If merchants need to customize the payment method display, then they need to put bankCode and bankProduct so the redirector will automatically redirect to the payment page.
<iframe id="sgoplus-iframe" sandbox="allow-same-origin allow-scripts allow-top-navigation" src="" scrolling="no" frameborder="0"></iframe>
<script type="text/javascript" src="https://sandbox-kit.espay.id/public/signature/js"></script>
<script type="text/javascript">
window.onload = function() {
var data = {
key: "",
paymentId: "",
backUrl: ""
},
sgoPlusIframe = document.getElementById("sgoplus-iframe");
if (sgoPlusIframe !== null) sgoPlusIframe.src = SGOSignature.getIframeURL(data);
SGOSignature.receiveForm();
};
</script>
Redirect without Embed Kit
https://sandbox-kit.espay.id/index/order/?url=callbackurl to merchant thank you page&commCode=community code&bankCode=bank code according to the selected channel&productCode=product code according to the selected channel&paymentId=order id
API JAVASCRIPT URL
Development : https://sandbox-kit.espay.id/public/signature/js
Production : https://kit.espay.id/public/signature/js
Parameter Name | Attribute | Mandatory | Description |
paymentId | String | Yes | Transaction Number / Invoice Id / unique id that identifies the order / billing / invoice. |
key | String | Yes | Key provided by Espay Integration Team |
backUrl | String | Yes | Merchant url for confirmation page |
bankCode | String | No | Parameter AutoDirect (Like response from Inquiry Merchant Info API) if merchants want to customize the display, this parameter is mandatory |
bankProduct | String | No | Parameter AutoDirect (Like response from Inquiry Merchant Info API) if merchants want customize the display, this parameter is mandatory |
display | String | No | Display provided by Espay. There are choice provided by Espay, such as tab, select list, and radio box option, Default : select For tab display set value = ‘tab’ For radio box display set value = ‘option’ |