Skip to main content

Midtrans

How to connect Midtrans​

OneEntry supports integration with Midtrans, an Indonesian payment system. Choose this payment account type if you want to accept payments through Midtrans.

Create a payment account of the Midtrans type​

To learn how to create a payment account, see this page (opens in a new tab). In the "Type" field, select Midtrans.

Fill in the account settings​

Open the payment account you created for editing. In the Details section, specify:

  • Success URL: the address the customer returns to after a successful payment.
  • Cancel URL: the address the customer returns to if the payment is canceled.
  • Session timeout: the lifetime of the payment session. After it expires, an unpaid session becomes invalid.

Connect Midtrans​

In the Connect Midtrans section, enter the credentials from your Midtrans account (Merchant Administration Portal → Settings → Access Keys):

  • Testing mode: while this checkbox is selected, the connection uses Midtrans test (Sandbox) keys. Clear it to accept real payments.
  • Server Key: the server key of your Midtrans account.
  • Available Payment Methods: the payment methods available to the customer. This field is required, so select at least one method. Available methods include credit_card, gopay, qris, shopeepay, bank_transfer, bank virtual accounts (bca_va, bni_va, bri_va, permata_va, cimb_va, mandiri_bill, echannel), as well as indomaret, alfamart, akulaku, kredivo, gci, and danamon_online.

Changes are saved automatically.

Set up automatic order status updates​

Go to Payments → Statuses, select the order storage, and link (opens in a new tab) the preset payment statuses to the statuses of your order storage. The order status will then update automatically on payment events from Midtrans.


Custom parameters for the payment API​

As with other providers, you can add custom parameters specific to the Midtrans API to a Midtrans payment account (the "Custom Parameters for Payment API" section). For details on how this works, see the "Accounts" section (opens in a new tab).