MiniApp x Snap Checkout Payment

Bi-SNAP is the recommended standard integration for MiniApp payments. Snap Checkout support is provided for merchants who already have an existing Snap Checkout integration and want to enable MiniApp Payments with minimal changes.

Minimum Required Changes

To enable MiniApp support using an existing Snap Checkout integration:

  1. Add the gopay object
  2. Include the provided pop_id
  3. Ensure GoPay payment method is enabled

For MiniApp payments, pop_id is mandatory. Transactions without pop_id may not be routed correctly within the MiniApp flow.

The pop_id (Point of Purchase ID) will be shared via email in the integration document after requesting a new MiniApp creation.

Example cURL:

curl --location --request POST 'https://app.midtrans.com/snap/v1/transactions' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic auth' \
--data '{
    "transaction_details": {
        "order_id": "test-123",
        "gross_amount": 100000
    },
    "gopay": {
        "pop_id": "<pop_id>"
    },
    "callbacks": {
        "finish": "https://www.google.com",
        "error": "https://www.facebook.com"
    }
}'

GoPay Object

"gopay": {
  "pop_id": "990407c8-7c2b-4998-8ef8-0bc67c0c6c55"
}
ParameterDescription
pop_idFor MiniApp payments, this parameter is mandatory to determine the Point of Purchase (POP).