NICEPAY API
API Version 1 (V1)
V1 Check Transaction Status
11 min
about v1 check transaction status this {{api}} is intends to check {{the}} {{status}} of {{the}} {{transaction}} when a {{notification}} received on {{the}} dbprocessurl , {{nicepay}} strongly recommend {{merchant}} to verify {{the}} {{notification}} using {{the}} docid\ b hqvi5gbns yxcexem2a when callbackurl is received, we strongly recommend {{merchant}} to verify {{the}} {{status}} by using {{the}} docid\ b hqvi5gbns yxcexem2a callback handling is very helpful to minimize fraud actions, we strongly recommend {{merchant}} s to verify {{the}} callback handling callback handling flow steps description {{merchant}} do {{checkout}} {{merchant}} request {{paymentproduct}} to {{nicepay}} {{nicepay}} send response callback and {{paymentproduct}} result ( callbackurl ) to {{merchant}} {{merchant}} check {{the}} {{status}} {{merchant}} send {{the}} {{status}} to {{nicepay}} {{nicepay}} return response (final status flag) to {{merchant}} api check transaction status 183,561,117 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type notification handling it is very helpful to minimize fraud actions, we strongly recommend {{merchant}} s to verify {{the}} notification handling notification handling flow steps description {{merchant}} do {{checkout}} {{merchant}} send {{payment}} to {{nicepay}} {{nicepay}} send notification url ( dbprocessurl ) to {{merchant}} {{merchant}} check {{the}} {{status}} {{merchant}} send {{the}} {{status}} to {{nicepay}} {{nicepay}} return response (final {{status}} flag) to {{merchant}} request parameters check status check status request parameter // order status mandatory field nicepay settrxid("ionpaytest02201603091207051498"); nicepay setreferenceno("merchantreferencenumber001"); nicepay setamt("1000"); nicepay setmerchanttoken(nicepay maketoken(nicepay getamt(), nicepay getreferenceno())); // order status request nicepay orderstatus(); // order status response system out println("response string " + nicepay getresponsestring()); // json in string format nicepay gethtresponse(); // json in hashtable\<string, string> format string resultcd = nicepay get("resultcd"); string resultmsg = nicepay get("resultmsg"); string txid= nicepay get("txid "); string imid= nicepay get("imid"); string currency= nicepay get("currency"); string amount= nicepay get("amount"); string instmntmon= nicepay get("instmntmon"); string instmnttype= nicepay get("instmnttype"); string referenceno= nicepay get("referenceno"); string goodsnm = nicepay get("goodsnm"); string paymethod = nicepay get("paymethod"); string billingnm= nicepay get("billingnm"); string merchanttoken= nicepay get("merchanttoken"); string reqdt= nicepay get("reqdt"); string reqtm = nicepay get("reqtm"); string status = nicepay get("status"); string bankcd= nicepay get("bankcd"); string vacctvaliddt= nicepay get("vacctvaliddt"); string vacctvalidtm= nicepay get("vacctvalidtm"); string vacctno= nicepay get("vacctno"); 132,73,68,180,275,271 6 true unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type response object check status check status response parameter { "txid" "normaltest01202002031344071337", "imid" "normaltest", "currency" "idr", "amt" "12000", "instmntmon" "1", "instmnttype" "1", "referenceno" "ord20200203130299", "goodsnm" "testing normal full payment cc va", "paymethod" "01", "billingnm" "customer name", "reqdt" "20200203", "reqtm" "134407", "status" "9", "resultcd" "0000", "resultmsg" "init", "cardno" null, "preauthtoken" null, "acqubankcd" null, "issubankcd" null, "vacctvaliddt" null, "vacctvalidtm" null, "vacctno" null, "bankcd" null, "payno" null, "mitracd" null, "receiptcode" null, "cancelamt" null, "transdt" null, "transtm" null, "recurringtoken" null, "cctranstype" null, "payvaliddt" null, "payvalidtm" null, "mrefno" null, "acqustatus" null, "cardexpyymm" null, "acqubanknm" null, "issubanknm" null, "depositdt" null, "deposittm" null, "acquirerdata" { "rrn" "332510237487" } } 208,88,93,354,270,271 true unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type additional response for virtual account 183,100,83,248 true unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type additional response for qris 183,156,106,248 true unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type additional response for others payment method 140,114,101,312 true unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type