"gopay": {
"enable_callback": true,
"callback_url": "someapps://callback",
"account_id": "00000269-7836-49e5-bc65-e592afafec14",
"payment_option_token": "eyJ0eXBlIjogIkdPUEFZX1dBTExFVCIsICJpZCI6ICIifQ==",
"recurring": false,
"promotion_ids": [
"CASHBACK|acbec7d4-b30b-44ac-9c42-f5d767419a72|8bb3c041-c71e-40f3-892b-688fda2ec979||2021-02-22|2021-02-23"
]
}
JSON Attribute | Description | Type | Required |
---|---|---|---|
enable_callback | Required for GoPay deeplink/QRIS. To determine appending callback URL in the deeplink. Default value: false . | Boolean | Optional |
callback_url | The HTTP or Deeplink URL to which the customer is redirected from Gojek app after successful payment. Default value: callback_url in dashboard settings . For GoPay Tokenization, please make sure callback_url is the same URL submitted on onboarding process. If callback_url is not specified by merchant, we will use merchant's finish redirect URL that is set on Midtrans Administration Portal, please make sure these URLs are also submitted during onboarding process. | String | Optional |
account_id | Required for GoPay Tokenization. The customer account ID linked during Create Pay Account API. | String | Conditional |
payment_option_token | Required for GoPay Tokenization. Token to specify the payment option made by the customer from Get Pay Account API metadata. | String | Conditional |
pre_auth | Set the value to true to reserve the specified amount from the customer balance. Once the customer balance is reserved, you can initiate a subsequent Capture API request. Default value: false . | Boolean | Optional |
recurring | Set the value to true to mark as a recurring transaction (no PIN challenge will be triggered to the user), only allowed for authorized merchants. Default value: false | Boolean | Optional |
promotion_ids | Only applicable for GoPay Tokenization. GoPay promotion ID to be used for payment. Acquired from Fetch Promotion API. Currently only support single promotion per transaction, the first promotion id on the list will be applied. | Array | Optional |