Skip to main content

Response on CallBack

/api/payment/response
app.post("/callback",  (req, res) => {
console.log(req.body);
// write your own code
res.end();
});

Output

Output, if transaction is successful
  
{
BANKTXNID: 'rBgoYGINPuSaNx8RilZSuKojIr8IY',
CHECKSUMHASH: 'BD4oV5QVJfLpe+CtxkvJ7HY2LvVlm/q1pWslhzJwjmdgOmY3rBgoYGINPuSaNx8RilZSuKojIr8IYW4wXgT/HJMcC+n/5LcLoJOQKOGkGD8=',
CURRENCY: 'INR',
MID: 'dRdzsj09522950887104',
ORDERID: '468967455',
RESPCODE: '0000',
RESPMSG: 'User has not completed transaction.',
STATUS: 'TXN_SUCCESS',
TXNAMOUNT: '250.00',
TXNID: '20230725011080000890628935325881299'
}
;


Output, if transaction is Unsuccessful
  
{
BANKTXNID: 'rBgoYGINPuSaNx8RilZSuKojIr8IY',
CHECKSUMHASH: 'BD4oV5QVJfLpe+CtxkvJ7HY2LvVlm/q1pWslhzJwjmdgOmY3rBgoYGINPuSaNx8RilZSuKojIr8IYW4wXgT/HJMcC+n/5LcLoJOQKOGkGD8=',
CURRENCY: 'INR',
MID: 'dRdzsj09522950887104',
ORDERID: '468967455',
RESPCODE: '141',
RESPMSG: 'User has not completed transaction.',
STATUS: 'TXN_FAILURE',
TXNAMOUNT: '250.00',
TXNID: '20230725011080000890628935325881299'
}