Payment Gateway

Payment Gateway stores the credentials of online payment providers: PayPal, Stripe, Midtrans, Xendit, and DOKU. One row per provider, with an active switch and the order it appears in on the payment screen.

Used By

admin or owner according to menu access rights

Data Type

master

Search Keys

Gateway

When This Form Is Used

Before You Fill It In

Workflow

  1. Open Settings / Business Setup / Payment Gateway.
  2. Add a row, then pick the provider in the Payment Gateway field.
  3. Fill in its credentials. The fields shown follow the provider you picked, so irrelevant ones stay out of the way.
  4. Set Order when more than one provider is active; a lower number appears first.
  5. Switch Active on only after the credentials have been tested.
  6. Save, then test from a transaction that actually uses online payment.

Fields That Need Attention

Field What It Means Status
Payment Gateway
gatewaykey
The payment provider configured on this row. The choices follow the providers installed on the server. Required
Active
isactive
Decides whether this provider is offered to buyers. Switching it off does not delete the credentials. Optional
Order
priority
Display order on the payment screen when more than one provider is active. A lower number appears first. Optional

After Saving

Common Problems

Available Fields

The list below summarises the fields available on the form. Credential fields only appear for the provider currently selected, so not all of them are visible at once.

Field What It Means Status
Payment Gateway
gatewaykey
The payment provider configured on this row. The choices follow the providers installed on the server. Required
Active
isactive
Decides whether this provider is offered to buyers. Switching it off does not delete the credentials. Optional
Order
priority
Display order on the payment screen when more than one provider is active. A lower number appears first. Optional
PayPal Client ID
paypal__client_id
Client ID from the PayPal merchant dashboard. Optional
PayPal Secret
paypal__secret
PayPal secret. Do not share it; it is equivalent to the merchant account key. Optional
PayPal Sandbox Mode
paypal__sandbox
Turns on PayPal test mode. Optional
Stripe API Key
stripe__api_key
Stripe API key for the company merchant account. Optional
Stripe Secret
stripe__secret
Stripe secret key. Make sure it matches the selected mode. Optional
Stripe Sandbox Mode
stripe__sandbox
Turns on Stripe test mode. Optional
Midtrans Server Key
midtrans__server_key
Midtrans Server Key from Settings / Access Keys in the merchant dashboard. Optional
Midtrans Client Key
midtrans__client_key
Midtrans Client Key. This key is meant to be used in the browser. Optional
Midtrans Sandbox Mode
midtrans__sandbox
Turns on Midtrans test mode. Optional
Xendit Secret Key
xendit__secret_key
Xendit Secret Key. Its prefix decides test or production mode, so there is no separate sandbox switch. Optional
Xendit Callback Token
xendit__callback_token
Notification verification token, copied from Settings / Webhooks in the Xendit dashboard. Optional
DOKU Client ID
doku__client_id
Client ID from the DOKU Back Office. Optional
DOKU Secret Key
doku__secret_key
DOKU Secret Key, used to sign every request. Optional
DOKU Sandbox Mode
doku__sandbox
Turns on DOKU test mode. Optional

User Checklist

Menu Location