Skip to Content
KingsPay Docs
Charges

Payment Methods

KingsPay supports multiple payment methods for charges. A payment method is the one thing you choose: pass its code as payment_method when creating a charge. To see the payment methods your account can use right now, call GET /v1/payments/methods.

QRIS

QRIS (Quick Response Code Indonesian Standard) is Indonesia's unified QR payment standard. When you create a QRIS charge, KingsPay returns a QR code payload and hosted URL that your customer scans with their preferred wallet app to complete the payment.

Because QRIS is an interoperable standard, your customer can scan the QR code using any compatible app, whichever provider generated it. For example, a QR generated through ShopeePay can still be scanned and paid with GoPay, OVO, or any other QRIS-enabled app.

Payment methods

Payment methodpayment_method valueCurrency
QRISqrisidr

Additional fields

No additional fields are required beyond the standard charge fields for QRIS charges.

Example

curl -X POST "https://api.kingsplatform.net/api/api/v1/payments/charges" \
  -H "Authorization: Bearer YOUR_API_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{
    "payment_method": "qris",
    "amount": 50000,
    "currency": "idr",
    "customer_details": {
      "name": "Jane Doe",
      "email": "[email protected]",
      "phone_number": "621234567890"
    },
    "client_reference_id": "your-order-id",
    "expires_at": "2026-03-02T06:58:40.000Z",
    "description": "Payment for order #1234"
  }'

Virtual Account

A Virtual Account (VA) is a unique bank account number assigned to a customer for a specific payment. The customer transfers funds to this number via standard bank transfer — internet banking, mobile banking, or an ATM. KingsPay monitors the transfer and updates the charge status automatically once funds arrive.

One-Time Virtual Account

Virtual accounts created through charges are one-time use only. The account number is tied to a specific charge with a fixed amount — once the charge is paid (or expires), the number can no longer receive transfers. If you need to accept another payment from the same customer, create a new charge.

If you need a persistent virtual account number that can receive transfers indefinitely — for example, for customer wallet top-ups — use a Permanent Virtual Account instead.

Each bank is its own payment method.

Payment methods

Bankpayment_method valueCurrency
BCAbca_vaidr
BNIbni_vaidr
BRIbri_vaidr
CIMB Niagacimb_vaidr
Mandirimandiri_vaidr
Maybankmaybank_vaidr
Permatapermata_vaidr

Activation required

Virtual account payment methods are not enabled by default. Contact KingsPay support to activate one for your account. Once activated, you will be assigned a VA allocation: the leading digits that all your virtual account numbers must begin with. Any account_number you specify in payment_method_options must start with them.

Additional fields

To choose the virtual account number and name yourself, send payment_method_options.virtual_account. Leave it out and KingsPay generates a number and uses your business account name. If you send it, both fields are required:

FieldTypeDescription
payment_method_options.virtual_account.account_numberstringThe virtual account number to assign, up to 20 characters. It must start with your VA allocation.
payment_method_options.virtual_account.account_namestringThe name displayed on the customer's bank transfer screen. Only letters, digits and spaces are kept, and it is cut to 20 characters.

Example

curl -X POST "https://api.kingsplatform.net/api/api/v1/payments/charges" \
  -H "Authorization: Bearer YOUR_API_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{
    "payment_method": "mandiri_va",
    "amount": 150000,
    "currency": "idr",
    "customer_details": {
      "name": "John Doe",
      "email": "[email protected]",
      "phone_number": "621234567890"
    },
    "client_reference_id": "your-order-id",
    "expires_at": "2026-03-02T06:58:40.000Z",
    "description": "Payment for order #5678",
    "payment_method_options": {
      "virtual_account": {
        "account_number": "1234567890",
        "account_name": "Acme Store"
      }
    }
  }'

On this page