Checkout
Search…
3. Callback To Merchant Portal

CallBack/ Response URL

1
<YourCallBackURL>?trackid=xxxx&result=xxxx&refid=&errormessage=&Hash=xxxx
Copied!

Call Back Response Parameters

Parameters
Data Type
Description
trackid
string
Reference ID passed in the request.
result
string
Payment result. Example: CAPTURED, NOT CAPTURED, DECLINED, REJECTED, BLOCKED.
refid
string
Payment Reference Number.
error message
string
If result is other than CAPTURED, then it gives you the actual reason.
hash
string
Use this for integrity of the data explained in response integrity section

How to identify parameters that are tampered?

If you want to check whether the parameters tamper or not, convert below parameters into a hash and compare with your hash which you got as a response in a query string.
Use the below method to identify parameter tempering.
1
String outParams = quot;trackid={trackid}&result={result}&refid={refid}";
2
String outhashValue = GetHashValue(outParams,_key);
3
if (Hash != outhashValue)
4
{
5
//This means it is tampered
6
// Your code
7
}
8
else{
9
}
Copied!