Espay Checkout Page

Embed Kit

Espay Checkout Page: Embed Kit is an integration process that involves adding the JavaScript (JS) provided by Espay Payment Gateway to your system. You only need to add the credentials provided by the Espay team, and your system will be connected to Espay’s payment transactions.

Espay payment method select box
Espay Checkout Page
Before Integration

Ensure that you have received the credentials from the Espay team.

Integration Steps

Below are the steps to integrate with the Espay Checkout Page.

1. Create Inquiry and Payment

You are required to provide a callback that the Espay Payment Gateway can access. Learn more about Inquiry and Payment.

2. Display Espay Checkout Page​

Add the provided repository code to your system.

API URL

Environment URL
Sandbox
https://sandbox-kit.espay.id/public/signature/js
Production
https://kit.espay.id/public/signature/js

Repository Code

<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>

Request Parameters​

Parameter Type Mandatory Description
key
String (32)
Y
API Key yang diberikan oleh tim Espay.
paymentId
String (20)
Y
Kode unik untuk mengidentifikasi pesanan / penagihan / faktur.

Contoh:
Nomor transaksi, invoice id, dll.
backUrl
String (255)
Y
URL merchant yang berisi halaman konfirmasi.
Y: Yes, O: Optional, C: Conditional

Display

3. Perform Payment Testing

You can simulate payments by accessing the Espay Payment Gateway sandbox. Portal Sandbox Espay

Scroll to Top