NICEPAY API
...
API Credit Card
Notification - API Credit Card
9 min
about notification api credit card {{nicepay}} sent push {{notification}} s through {{merchant}} 's dbprocessurl the {{merchant}} needs to reassure there is no blacklist {{nicepay}} ip and should whitelist {{nicepay}} ip to get {{the}} push {{notification}} only from {{nicepay}} 's server request method post post merchant token sha256 ( imid + txid + amt + merchantkey ) ip 103 20 51 0/24 103 117 8 0/24 user agent user agent jakarta commons httpclient/3 1 notification parameter for notification api credit card when your dbprocessurl received a {{notification}} , {{nicepay}} strongly recommend {{merchant}} to verify {{the}} {{notification}} using {{the}} docid\ fc bkdwkevwf2h9usoc8k parameter type size description example / notes txid n 30 transaction id merchanttoken an 255 {{merchant}} token referenceno ans 40 {{merchant}} order number paymethod n 2 docid\ ek 0djw7nuhytcda4sa3p amt n 12 {{paymentproduct}} amount transdt n 8 transaction date transtm n 6 transaction time currency a 3 currency goodsnm an 100 goods name billingnm a 100 billing name matchcl n 1 payment flag docid yqqe4ju5bjurdxkxdtho status a 1 deposit status docid\ qahrf3q4g85njtqxmwfyk 0 deposit 1 reversal cpguaranteeablestatus n 2 cp guaranteeable status additional parameter for notification api credit card parameter type size description example / notes authno n 10 approval number issuebankcd a 4 docid\ qbeq29lj53z vbvxtvb7l issuebanknm a 100 issuing {{bank}} name acqubankcd a 4 docid\ qbeq29lj53z vbvxtvb7l acqubanknm a 4 acquiring {{bank}} name cardno ans 20 card number with masking cardexpyymm n 4 card expiry ( yymm ) instmntmon n 2 installment month instmnttype n 2 docid\ wfsinjxqc2s9yubbybpep preauthtoken an 255 preauth token recurringtoken an 255 recurring token cctranstype a 2 docid 7pas vd5ylg4vdurmygwo 1 normal 2 recurring 3 pre auth 4 captured vat n 12 {{vat}} number fee n 12 service fee notaxamt n 12 tax free amount {{merchant}} tokens that received from {{the}} notification, {{merchant}} must have an internal comparison to prevent fake/invalid {{notification}} s sample parameter for notification api credit card request parameter curl curl x post "https //www merchantdbprocessurl com" \\ h "content type application/x www form urlencoded" \\ d "cctranstype=1" \\ d "fee=0" \\ d "txid=ionpaytest01202212141419051594" \\ d "amt=5000" \\ d "notaxamt=0" \\ d "cardno=453211 1111" \\ d "issubankcd=othr" \\ d "matchcl=1" \\ d "preauthtoken=null" \\ d "cardexpyymm=2712" \\ d "acqubanknm=mandiri" \\ d "paymethod=01" \\ d "currency=idr" \\ d "instmntmon=1" \\ d "cc trans type=1" \\ d "issubanknm=" \\ d "merchanttoken=f8e51ce8c14527592c9a5f1df61975759123c93a75861c7629cc20f32b1d376b" \\ d "goodsnm=goods" \\ d "referenceno=ordno20221214141284" \\ d "authno=051594" \\ d "transtm=141905" \\ d "cpguaranteeablestatus=null" \\ d "recurringtoken=null" \\ d "vat=0" \\ d "instmnttype=1" \\ d "billingnm=john+doe" \\ d "acqubankcd=bmri" \\ d "transdt=20221214" \\ d "status=0" response parameter { "responsecode" 200, "responsemessage" "success" }