Skip to main content
Legia

Website & UI/UX

What is a Payment Gateway?

Also called payment processor, online payment.

Short definition

A payment gateway is an intermediary service that connects a website or app with banks and payment providers, so customers can pay with various methods and the payment status is recorded automatically.

How it works

When a customer presses the pay button, the website sends the transaction data to the payment gateway through an API. The customer chooses a method, such as a virtual account, credit card, QRIS, or digital wallet, and completes the payment. The payment gateway tells the website the result through an automatic notification called a webhook, and the order status changes to paid without the finance team having to check manually.

What to check before choosing

The payment methods your customers use most, how the provider calculates per-transaction fees, how long funds take to reach the company account, and the documents required at registration. In Indonesia, make sure the provider holds a Bank Indonesia license as a payment service provider. For business-to-business transactions, also check support for invoicing with due dates.

Security and responsibility

In a typical integration, card details are entered on a page or form owned by the provider, so the company website never stores customers' card numbers. Even so, the website must still use HTTPS, verify every webhook so the paid status cannot be faked, and keep API keys on the server, not in code exposed to the browser. Test every flow in the provider's sandbox mode before accepting real payments. Also decide who in the company holds the provider dashboard account and handles refunds.

Related Legia service Website Development Company websites that load fast, stay secure, and that your own team can update.