Your clients can pay invoices and store orders with Midtrans (cards, bank transfer / virtual account, GoPay, QRIS, ShopeePay and more), on Midtrans' secure Snap payment page.
Requirements
- RISE 4.2 or newer, with the cron job running.
- A Midtrans merchant account.
- Your RISE site on a public address: Midtrans can't send payment notifications to a local address (localhost).
Get your credentials
Test (sandbox) credentials
- Create a Midtrans account on the Midtrans sign-up page and confirm your email. The sandbox is ready right away.
- Sign in to the Sandbox dashboard (or use the environment switch at the top of the dashboard and pick Sandbox).
- Server Key: open Settings > Access Keys and copy the Server Key (starts with SB-Mid-server-). Don't use the Client Key.
- Notification URL: open Settings > Configuration (in newer dashboards Settings > Payment), paste the Webhook listener link from RISE in Payment Notification URL and click Update.
Live credentials
- In the dashboard, switch to Production and complete the activation form: business details, owner ID, bank account and documents. Midtrans reviews them and turns on the payment methods for you.
- After approval, open Settings > Access Keys in the Production dashboard and copy the production Server Key (starts with Mid-server-).
- Set the Payment Notification URL again in the Production dashboard. Sandbox and Production settings are separate.
Setup
- Install and activate the plugin in Settings > Plugins.
- Go to Settings > Payment methods and edit Midtrans.
- Enter the Server Key (see Get your credentials). With a Sandbox key turn on Testing environment; with a Production key turn it off.
- Copy the Webhook listener link shown here into the Midtrans Payment Notification URL. Without it, payments are still recorded when the client comes back from Midtrans, or later by the cron job.
- Turn on Available on Invoice and save.
Midtrans takes Indonesian Rupiah (IDR) only, in whole Rupiah. An amount with cents (ex: Rp 150,000.50) can't be paid with Midtrans: keep IDR invoice totals in whole Rupiah. Clients can pay from the client portal or from a public invoice link, without signing in.
Testing
With the Sandbox Server Key and Testing environment on, open the invoice in a private browser window and pay by card 4811 1111 1111 1114, any future date, CVV 123, OTP 112233. Other methods (virtual account, GoPay, QRIS) can be paid in the Midtrans sandbox simulator.