NICEPAY API
...
API Credit Card
Status Inquiry - API Credit Card
12 min
about status inquiry api credit card integration with status inquiry on s is required so that s can check of ongoing es, whether they are successful, failed, and other status inquiry api credit card the of inquiries on s aims to enable s to connect with which has function to checking of s 182,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 unhandled content type unhandled content type when your dbprocessurl received a , strongly recommend to verify using docid\ fc bkdwkevwf2h9usoc8k notification handling is very useful to minimize the risk of fraud we strongly encourage s to verify notification handling you can read more detailed about notification handling on docid\ ztzv8p3ig3nv3lh5bfloi request parameter for status inquiry api credit card the following is a list of request s to inquiry request on 159,63,66,213,234 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 response parameter for status inquiry api credit card the following is a list of response parameter or result from request parameter for status inquiry 124,57,69,205,287,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 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 parameter for status inquiry api credit card here is a list of additional response for result from request inquiry for 142,57,69,196,278,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 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 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 sample parameter for status inquiry api credit card request parameter curl curl location 'https //dev nicepay co id/nicepay/direct/v2/inquiry' \\ \ header 'content type application/json' \\ \ data '{ 	"timestamp" "20221214091282", 	"txid" "ionpaytest01202212140949101366", 	"imid" "ionpaytest", "merchanttoken" "7eceb5801db4e039223698c4eb9871432217132d8b0483122001a2569e8c7537", 	"referenceno" "ordno20221214091293", 	"amt" "5000" }' node js const config = { isproduction true, iscloudserver false, merchantkey "your merchant key", clientid "ionpaytest", privatekey cons privatekey, clientsecret cons clientsecret, }; const parameter = { timestamp "20221214091282", txid "ionpaytest01202212140949101366", imid "ionpaytest", referenceno "ordno20221214091293", amt "5000", }; const secondversion = new secondapiversion(config); const response = await secondversion requestapi(parameter, "/direct/v2/inquiry"); console log("inquiry response ", response); config = nicepay builder() isproduction(false) iscloudserver(false) timestamp("20221214091282") build(); string timestamp = "20221214091282"; string imid = "ionpaytest"; string merchantkey = testingconstants merchant key; string reffno = "ordno20221214091293"; string amount = "5000"; inquirystatus requestdata = inquirystatus builder() timestamp(timestamp) txid("ionpaytest01202212140949101366") imid(imid) referenceno(reffno) merchanttoken(timestamp, imid, reffno, amount, merchantkey) amt(amount) build(); nicepayresponsev2 result = v2cardservice callv2inquirystatus(requestdata, config); system out println("inquiry response " + result); bodyinquiry = ( builderinquiry buildinquiry() settxid("ionpaytest01202212140949101366") setreferenceno("ordno20221214091293") setamt("5000") build() ) environment = ( builderenvironment buildenvironment() iscloud(false) isproduction(false) build() ) response = servicenicepay serviceinquiry( datagenerator getinquirybody(bodyinquiry jsoninquiry()), environment ) c# string merchantkey = config merkey; string clientid = config clientid; string timestamp = "20221214091282"; string txid = "ionpaytest01202212140949101366"; string refno = "ordno20221214091293"; string amount = "5000"; bool isproduction = true; bool iscloudserver = false; // generate merchant token using provided json values var builder = new merchanttokenbuilder() settimestamp(timestamp) setimid(clientid) settxid(txid) setamount(amount) setmerchantkey(merchantkey); string merchanttoken = builder buildmerchanttoken(); console writeline("create merchant token " + merchanttoken); // build check status request using json values var bodybuilder = new nicepayrequestbuilder() setcheckstatus( imid clientid, timestamp timestamp, txid txid, amt amount, referenceno refno, merchanttoken merchanttoken ); apiendpoints apiendpoints = new apiendpoints(); dictionary\<string, object> payload = bodybuilder build(); string jsonpayload = newtonsoft json jsonconvert serializeobject(payload); var checkstatusservice = new nicepayregistrationservice(apiendpoints, isproduction, iscloudserver); var result = await checkstatusservice sendpostasync(apiendpoints inquiryv2, payload); laravel protected $useprod = false; protected $usecloud = false; protected $inquiry endpoint = "/nicepay/direct/v2/inquiry"; $url = httputil getnicepaydomain($this >useprod, $this >usecloud) $this >inquiry endpoint; // request body parameter from json $timestamp = "20221214091282"; $txid = "ionpaytest01202212140949101366"; $reference no = "ordno20221214091293"; $amt = "5000"; $merchant token = "7eceb5801db4e039223698c4eb9871432217132d8b0483122001a2569e8c7537"; $body = \[ "timestamp" => $timestamp, "txid" => $txid, "imid" => "ionpaytest", "merchanttoken" => $merchant token, "referenceno" => $reference no, "amt" => $amt, ]; try { $response = httputil postjsonrequest($url, $body); } catch (\exception $e) { echo "inquiry failed " $e >getmessage(); } php native $timestamp = "20221214091282"; $txid = "ionpaytest01202212140949101366"; $imid = "ionpaytest"; $referenceno = "ordno20221214091293"; $amount = "5000"; $config = $this >v2config; $parameter = inquirystatus builder() >settimestamp($timestamp) >settxid($txid) >setimid($imid) >setmerchanttoken($timestamp, $imid, $referenceno, $amount, $this >merchantkey) >setreferenceno($referenceno) >setamt($amount) >build(); $cardservice = new v2cardservice($config); $response = $cardservice >inquirystatus($parameter); val request directv2checkstatus = directv2checkstatus builder() timestamp("20221214091282") txid("ionpaytest01202212140949101366") imid("ionpaytest") merchantkey(default merchant key) referenceno("ordno20221214091293") amt("5000") build() val response nicepayresponsev2 = v2cardservice checkstatus(request, config)!! codeigniter $timestamp = "20221214091282"; $reffno = "ordno20221214091293"; $amount = "5000"; $config = $this >v2config; $parameter = inquirystatus builder() >settimestamp($timestamp) >settxid("ionpaytest01202212140949101366") >setimid("ionpaytest") >setmerchanttoken($timestamp, "ionpaytest", $reffno, $amount, $this >merchantkey) >setreferenceno($reffno) >setamt($amount) >build(); $v2cardservice = new v2cardservice($config); $response = $v2cardservice >inquirystatus($parameter); response parameter sample response { "txid" "ionpaytest01202212140949101366", "imid" "ionpaytest", "currency" "idr", "amt" "5000", "instmntmon" "1", "instmnttype" "1", "referenceno" "ordno20221214091293", "goodsnm" "goods", "paymethod" "01", "billingnm" "hantu kesorean", "reqdt" "20221214", "reqtm" "094910", "status" "0", "resultcd" "0000", "resultmsg" "paid", "cardno" "453211 1111", "preauthtoken" null, "acqubankcd" "bmri", "issubankcd" "othr", "vacctvaliddt" null, "vacctvalidtm" null, "vacctno" null, "bankcd" null, "payno" null, "mitracd" null, "receiptcode" null, "cancelamt" null, "transdt" "20221214", "transtm" "094910", "recurringtoken" null, "cctranstype" "1", "payvaliddt" null, "payvalidtm" null, "mrefno" null, "acqustatus" "10", "cardexpyymm" "2712", "acqubanknm" "mandiri", "issubanknm" "other", "depositdt" null, "deposittm" null, "paymentexpdt" null, "paymentexptm" null, "paymenttrxsn" null, "canceltrxsn" null, "userid" null, "shopid" null, "authno" "101366", "acquirerdata" { "rrn" null } }