QRIS - API Checkout
About QRIS - API Checkout
This APIο»Ώ uses by Merchantο»Ώ to requests a paymentο»Ώ to theο»Ώ NICEPAYο»Ώ for QRISο»Ώ paymentο»Ώ method using Checkoutο»Ώ APIο»Ώ.
ο»Ώ
Process Flow

Steps description:
- The Customerο»Ώ does checkoutο»Ώ.
- The Customerο»Ώ sends data checkout to Merchantο»Ώ.
- The Merchantο»Ώ sends request checkout using APIο»Ώ Registration to NICEPAYο»Ώ.
- ο»ΏNICEPAYο»Ώ does checkoutο»Ώ registration processο»Ώ.
- ο»ΏNICEPAYο»Ώ redirects Merchantο»Ώ to NICEPAYο»Ώ paymentο»Ώ pageο»Ώ.
- ο»ΏMerchantο»Ώ displays NICEPAYο»Ώ pageο»Ώ to theο»Ώ Customerο»Ώ.
- The Customerο»Ώ chooses payment methodο»Ώ.
- The Customerο»Ώ scan QR and send theο»Ώ processο»Ώ result to QRISο»Ώ Partnerο»Ώ.
- ο»ΏQRISο»Ώ Partnerο»Ώ does paymentο»Ώ processο»Ώ.
- ο»ΏQRISο»Ώ Partnerο»Ώ sends paymentο»Ώ note transactionο»Ώ result to theο»Ώ Customerο»Ώ.
- ο»ΏQRISο»Ώ Partnerο»Ώ sends notificationο»Ώ or paymentο»Ώ message to NICEPAYο»Ώ.
- ο»ΏNICEPAYο»Ώ updates paymentο»Ώ statusο»Ώ.
- ο»ΏNICEPAYο»Ώ sends dbProcessUrl notificationο»Ώ to Merchantο»Ώ.
- ο»ΏMerchantο»Ώ receives notificationο»Ώ.
- ο»ΏMerchantο»Ώ request statusο»Ώ inquiry to NICEPAYο»Ώ.
- ο»ΏNICEPAYο»Ώ receives theο»Ώ request.
- ο»ΏNICEPAYο»Ώ sends statusο»Ώ inquiry response to Merchantο»Ώ.
- ο»ΏMerchantο»Ώ receives final statusο»Ώ.
- ο»ΏMerchantο»Ώ sends result pageο»Ώ transactionο»Ώ to theο»Ώ Customerο»Ώ.
Before making an APIο»Ώ calls for Transaction Paymentο»Ώ, execute theο»Ώ Transaction Registration first.
ο»Ώ
ο»ΏNICEPAY Secure Payment Page

The image above is a sample of checkoutο»Ώ paymentο»Ώ procedures with theο»Ώ QRISο»Ώ method using theο»Ώ NICEPAYο»Ώ Secure Paymentο»Ώ Page.
The Customerο»Ώ can't go back to theο»Ώ Secure Paymentο»Ώ pageο»Ώ after choosing theο»Ώ QRISο»Ώ payment methodο»Ώ because theο»Ώ QR code transactionο»Ώ has already been generated successfully and is ongoing. If theο»Ώ payment methodο»Ώ needs to be changed, theο»Ώ Merchantο»Ώ must re-create theο»Ώ transactionο»Ώ starting from theο»Ώ initial transactionο»Ώ.

After choosing theο»Ώ QRISο»Ώ method, theο»Ώ QR code will appear on theο»Ώ next pageο»Ώ. The Customerο»Ώ can scan theο»Ώ code directly by following theο»Ώ QRIS Payment Guideο»Ώ or download theο»Ώ image firsthand through theο»Ώ Download QR Image buttonο»Ώ.

If theο»Ώ QR code hasn't been used on theο»Ώ transactionο»Ώ but has already expired, theο»Ώ Customerο»Ώ must repeat theο»Ώ generated QR code processο»Ώ by returning to theο»Ώ checkoutο»Ώ pageο»Ώ first.
ο»Ώ
API Checkout Transaction Payment
API url | /nicepay/redirect/v2/payment |
|---|---|
Request Method | Redirect-GET |
Header | Content-Type: application/Form-UrlEncoded |
ο»Ώ
Request Parameter for QRIS - API Checkout (CallbackUrl)
The following are Request Parameter lists for QRISο»Ώ Paymentο»Ώ APIο»Ώ on Checkoutο»Ώ APIο»Ώ.
Parameter | Tipe | Ukuran | Deskripsi | Contoh / Catatan |
|---|---|---|---|---|
paymentURL ο»ΏRequiredο»Ώ | URL | 14 | ο»ΏPaymentο»Ώ URL ο»Ώ | |
tXid ο»ΏRequiredο»Ώ | AN | 30 | Transaction ID ο»Ώ | IONPAYTEST00202103191252519205 |
ο»Ώ
Response Parameter for QRIS - API Checkout (CallbackUrl)
Parameter | Tipe | Ukuran | Deskripsi | Contoh / Catatan |
|---|---|---|---|---|
resultCd | N | 4 | ο»ΏResult Codeο»Ώο»Ώ | 0000 |
resultMsg | AN | 255 | Result Message: Error Codeο»Ώο»Ώ | Success |
tXid | AN | 30 | Transaction ID (Key from NICEPAYο»Ώ) | TESTTEST0300202008070951284276 ο»Ώ When success |
referenceNo | ANS | 40 | Order Number | ord20200807090809 ο»Ώ When success |
amount | N | 12 | Transaction Amount | 1000 ο»Ώ When success |
transDt | N | 8 | Registration Date (YYYYMMDD) | 20200808 ο»Ώ When success |
transTm | N | 6 | Registration Time (HH24MISS) | 120000 ο»Ώ When success |
description | AN | 100 | Transaction Description | This is Testing Transaction ο»Ώ When success |
authNo | N | 10 | Approval Number | 1234567890 ο»Ώ When success β Only CC (Additional) |
recurringToken | AN | 255 | Recurring Token | 5b949971aea6d468bebef20fec7b067abde88e52a4520925cd28dfa840ce5abc ο»Ώ When success β Only CC (Additional) |
cardNo | ANS | 20 | Card Number with Masking | 420192**2327 ο»Ώ When success β Only CC |
acquBankCd | A | - | ο»ΏAcquiring Bank Codeο»Ώο»Ώ | BMRI ο»Ώ When success β Only CC |
issuBankCd | A | - | ο»ΏIssuing Bank Codeο»Ώο»Ώ | OTHR ο»Ώ When success β Only CC |
vat | N | 12 | ο»ΏVATο»Ώ Number | 0 ο»Ώ When success , CC |
fee | N | 12 | Service Fee | 0 ο»Ώ When success , CC |
notaxAmt | N | 12 | Tax Free Amount | 0 ο»Ώ When success , CC |
bankCd | A | 4 | ο»ΏBank Codeο»Ώο»Ώ | BMRI |
mitraCd | A | 4 | ο»ΏMitra Codeο»Ώο»Ώ | OVOE ο»Ώ When success Direct Debitο»Ώ, E-Walletο»Ώ, Paylaterο»Ώο»Ώ |
bankVacctNo | N | 20 | VA Number | 447770956314286 ο»Ώ When success β VA |
payNo | N | 20 | ο»ΏPaymentο»Ώ number | 9041071059504308 ο»Ώ When success β CVS |
currency | A | 3 | Currency | IDR ο»Ώ When success β E-Walletο»Ώ, Paylaterο»Ώ |
goodsNm | AN | 100 | Goods name | Testing Transaction NICEPAYο»Ώ ο»Ώ When success β E-Walletο»Ώ, Paylaterο»Ώο»Ώ |
billingNm | A | 100 | Billing Name | IONPAY NETWORK TESTING ο»Ώ When success β E-Walletο»Ώ, Paylaterο»Ώ |
payMethod | N | 2 | ο»ΏPayment Method Codeο»Ώο»Ώ | 03 ο»Ώ When success β E-Walletο»Ώ, Paylaterο»Ώο»Ώ |
Note: The response parameterο»Ώ will be sent through callbackUrlΒ with Content-type:Β application/jsonΒ and method:Β POST Parameter.
ο»Ώ
Sample Parameter for QRIS - API Checkout (CallbackUrl)
On theο»Ώ paymentο»Ώ in Checkoutο»Ώ, theο»Ώ response from theο»Ώ request that gets hit is theο»Ώ Callback URL.
Request Parameter
curl -X GET "https://www.merchant.com/callbackUrl?ccTransType=1&fee=0&tXid=IONPAYTEST00202212201540174369&amt=1000¬axAmt=0&cardNo=46161111****1111&issuBankCd=BMRI&matchCl=1&preauthToken=null&cardExpYymm=2603&acquBankNm=Mandiri&payMethod=01¤cy=IDR&instmntMon=1&cc_trans_type=1&issuBankNm=Mandiri&merchantToken=dc1dd9e57ff6c4db341654ae31e623cab4d4d8057b2d0b58bef43ccb0da3b494&goodsNm=Goods+For+Testing+Credit+Card&referenceNo=ordNo20221220151243&authNo=174300&transTm=154017&cpGuaranteeableStatus=null&recurringToken=null&vat=0&instmntType=1&billingNm=John+Doe&acquBankCd=BMRI&transDt=20221220&status=0"Callback Parameter
resultCd=0000
resultMsg=SUCCESS
tXid=IONPAYTEST00202212211103524783
referenceNo=ORDERKU345
payMethod=09
amt=12000
billingNm=John+Doe
authNo=150367
cardNo=62210082****0590
acquBankCd=ARTJ
issuBankCd=ARTJ
acquBankNm=Artajasa
issuBankNm=Artajasaο»Ώ
Callback Handling API Checkout Transaction Payment
When Your Callback already received callbackUrl, we recommended theο»Ώ Merchantο»Ώ to do theο»Ώ statusο»Ώ verification using theο»Ώ Status Inquiry - API Checkoutο»Ώ.
Callback Handling is very important to minimize theο»Ώ Fraud act, we highly recommend theο»Ώ Merchantο»Ώ to do theο»Ώ verification using Callback parameter.

https://merchant.com/callback-nicepay?resultCd=0000&resultMsg=SUCCESS&tXid=IONPAYTEST00202212211103524783&referenceNo=ORDERKU345&payMethod=09&amt=12000&billingNm=John+Doe&authNo=150367&cardNo=62210082****0590&acquBankCd=ARTJ&issuBankCd=ARTJ&acquBankNm=Artajasa&issuBankNm=Artajasaο»Ώ