NICEPAY API
...
API GPN
Cancel - API GPN
13 min
tentang api gpn cancel cancel ini digunakan untuk membatalkan sudah dibayarkan jika dibatalkan sebelum selesai, maka tersebut dianggap void dan dana tersebut akan dikembalikan ke api gpn cancel cancel digunakan untuk membatalkan 174,557,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 payment methods available for cancel code paymethod 01 02 03 04 05 06 08 09 gpn gpn request parameters for gpn cancel berikut ini adalah daftar untuk melakukan request cancel payment pada parameter ini digunakan melalui platform pengujian 145,51,81,160,298 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 response parameter for gpn cancel berikut adalah response parameter dari hasil request parameter untuk cancel 181,55,79,227,164 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 sample json for gpn cancel json request { "timestamp" "20180123100505", "txid" "ionpaytest01202103311759347262", "imid" "ionpaytest", "paymethod" "09", "canceltype" "1", "cancelmsg" "request cancel", "merchanttoken" "66141d60572e570045c4f3e9965f3452d511496841981e8a2af6a24a7038a119", "preauthtoken" "", "amt" "10000", "cancelserverip" "127 0 0 1", "canceluserid" "admin", "canceluserip" "127 0 0 1", "canceluserinfo" "test cancel", "cancelretrycnt" "3", "referenceno" "cancelno20160525000 52104", "worker" "" } json response { "txid" "ionpaytest01202103311759347262", "referenceno" "ord20210331170394", "resultcd" "0000", "resultmsg" "success", "transdt" "20210331", "transtm" "175934", "amt" "10000", "cancelreferenceno" "cancelno20160525000 52104" } java request //cancel registration// nicepay settimestamp("20221114114338"); nicepay setimid("ionpaytest"); nicepay setamt("10000"); nicepay setreferenceno("ordno20221202141217"); nicepay setmerchanttoken(nicepay maketoken(nicepay getmerchanttoken()); nicepay settxid("ionpaytest01202103311759347262"); nicepay setpaymethod("09"); nicepay setcanceltype("1"); nicepay setcancelmsg("request cancel"); nicepay setcancelserverip("127 0 0 1"); // request cancel nicepay cancel(); // response string // system out println("final response string " + nicepay getresponsestring()); string resultcd = nicepay get("resultcd"); string resultmsg = nicepay get("resultmsg"); string txid = nicepay get("txid"); string referenceno = nicepay get("referenceno"); string amt = nicepay get("amt"); string cancelreferenceno = nicepay get("cancelreferenceno");