GOTEN Digital

Journal

5 min read
  • web-development
  • payments

Payment Gateway Integration in Indonesia: Guide for Websites and Apps

Payment gateway integration in Indonesia: QRIS, virtual accounts, e-wallets and cards, how to choose a provider, integration options and mistakes to avoid.

Payment gateway integration illustration: notifications for a new order, a QRIS payment received, a paid status webhook and a sent confirmation

If your website or app sells anything, from products and bookings to memberships and invoices, customers expect to pay the way they already pay every day: QRIS, e-wallets, bank virtual accounts, cards and sometimes pay-later options. Asking them to transfer manually and send a screenshot costs sales and admin time. Payment gateway integration connects your website or app to these payment methods securely and confirms payments automatically. This guide explains how it works in Indonesia, what to look for in a provider, the integration options and the mistakes to avoid.

What a payment gateway does

A payment gateway sits between your website or app and the banks and e-wallets. It shows the customer the payment options, processes the payment, tells your system whether it succeeded and settles the money to your bank account. It also handles much of the security and compliance work, so card data never needs to be stored in your own system.

Common payment methods in Indonesia

  • QRIS: the national QR standard from Bank Indonesia, accepted by most e-wallets and mobile banking apps.
  • Virtual accounts: unique bank account numbers per order, paid through mobile banking, internet banking or ATMs.
  • E-wallets: popular digital wallets with redirect or app-to-app flows.
  • Credit and debit cards: important for B2B, travel and higher-value purchases.
  • Pay later and instalments: useful for higher-priced products, depending on the provider.
  • Retail outlets: paying at convenience stores for customers without bank accounts.

How to choose a payment gateway provider

Indonesia has several established providers, such as Midtrans, Xendit and DOKU, among others. Compare them on:

  • Payment methods your customers actually use.
  • Fees per method, settlement fees and any monthly charges.
  • Settlement time to your bank account.
  • Onboarding requirements such as business legal documents.
  • Developer documentation, SDKs and test environment.
  • Features: recurring payments, payment links, refunds, split payments and reporting.
  • Support and reliability during peak campaigns.

Integration options

1. Payment links

The simplest option: generate a link per order or invoice and send it by WhatsApp or email. Good for services, B2B invoices and early-stage businesses.

2. Hosted checkout

The customer is redirected to the provider's payment page, then back to your site. Quick to integrate and the provider handles most of the security.

3. Embedded or API checkout

Payment options appear inside your own checkout for a smoother experience. It needs more development and careful testing, but gives full control over the flow.

4. Recurring and subscription payments

For memberships and subscriptions, check which methods support automatic recurring charges and how failed payments are retried. See our guide to building a membership management system.

What good payment gateway integration includes

  • Webhooks so your system updates the order status automatically when a payment succeeds, fails or expires.
  • Idempotency and duplicate checks so one payment never creates two orders.
  • Clear customer messages for pending, successful and expired payments.
  • Refund and cancellation flows that admin can trigger from the dashboard.
  • Reconciliation reports that match orders, payments and settlements for finance.
  • Security: secret keys stored safely on the server, never in the browser. See our web app security checklist.

Mistakes to avoid

  • Relying on the customer's redirect back to your site instead of webhooks, which leaves orders stuck as unpaid.
  • Testing only successful payments and not expired, failed or partial ones.
  • Showing too many payment methods, which confuses customers.
  • Forgetting that fees differ by method when setting prices and promotions.
  • Leaving test keys in production or live keys in public code.

FAQ

How long does payment gateway integration take?

Payment links can be ready in days. Full checkout integration with webhooks, refunds and reports usually takes a few weeks, including provider onboarding.

Do we need a registered company?

Most providers require business documents for full access; requirements differ by provider and business type.

Can we accept payments in our mobile app?

Yes, providers offer SDKs and APIs for mobile apps as well as websites.

An example: from manual transfers to automatic confirmation

Imagine a training centre that asked students to transfer course fees and send a screenshot on WhatsApp. Admin checked bank statements every morning, sometimes missed payments and often replied late. After payment gateway integration, each registration creates an order with a QRIS code and virtual account options. When the student pays, a webhook marks the order as paid, sends a WhatsApp confirmation and adds the student to the class list. Finance downloads a daily settlement report that already matches each payment to a registration. Admin time drops, and students get their confirmation within seconds instead of the next morning.

A payment gateway integration checklist before launch

  • Every payment method you offer has been tested in the provider's sandbox, including success, failure and expiry.
  • Webhooks are verified with the provider's signature and processed only once.
  • Orders that stay unpaid are cancelled or released automatically after the expiry time.
  • Customers receive confirmation by email or WhatsApp within seconds of paying.
  • Admin can search payments, issue refunds and export reports without developer help.
  • Finance has agreed how daily settlements will be reconciled with orders.
  • Live and test keys are stored in server settings, not in code, and access is limited to the people who need it.

Going through this list with your developer before launch prevents most of the payment problems that frustrate customers in the first weeks, especially during busy promotions when every failed payment means a lost sale.

Integrate payments with GOTEN

We integrate Indonesian payment gateways into websites, online stores, booking and membership systems, with webhooks, refunds and finance-ready reports. See our web & app development services or read about ecommerce website development.

More from the Journal

Back to Journal