NICEPAY API
API Version 1 (V1)
V1 Cancel Transaction
6 min
about cancel transaction this {{api}} uses to cancel {{the}} registered {{transaction}} that either, has and hasn't passed {{the}} {{settlement}} time api specifications cancel order 182,562,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 request parameters cancel order nicepay setcancelmsg("cancel message"); nicepay setamt("1000"); nicepay setfee("0"); nicepay setvat("0"); nicepay setnotaxamt("0"); nicepay setreqserverip("127 0 0 1"); nicepay setcanceluserid(""); nicepay setuserip("127 0 0 1"); nicepay setcanceluserinfo("customer cancel transaction"); nicepay setcancelretrycnt("3"); nicepay setworker(""); // cancel mandatory field nicepay settrxid("ionpaytest02201603091207051498"); nicepay setpaymethod("02"); nicepay setcanceltype("1"); nicepay setmerchanttoken(nicepay maketoken(nicepay getamt(), nicepay gettrxid())); // cancel request nicepay cancel(); // cancel 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 referenceno= nicepay get("referenceno"); string transdt= nicepay get("transdt"); string transtm= nicepay get("transtm"); string description= nicepay get("description"); string amount= nicepay get("amount"); 160,105,80,210,230 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 response parameter cancel order { "acquirerdata" { "rrn" "332510237487" }, "txid" "ionpaytest02201603091207051498", "referenceno" "ordno20160525000 52104", "resultcd" "0000", "resultmsg" "success", "transdt" "20160303", "transtm" "135959", "description" "payment of ordno20160525000 52104", "amount" "1000", "canceltxid" "ionpaytest02201603091207051499" } 158,74,60,227,229 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