node-paytmpg 5.3.0 → 5.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -676,7 +676,7 @@ module.exports = function (app, callbacks) {
|
|
|
676
676
|
}
|
|
677
677
|
|
|
678
678
|
module.callback = async (req, res) => {
|
|
679
|
-
console.log("request_data ", req.originalUrl, JSON.stringify(req.
|
|
679
|
+
console.log("request_data ", req.originalUrl, JSON.stringify(req.body))
|
|
680
680
|
|
|
681
681
|
var result = false;
|
|
682
682
|
let isCancelled = false;
|
|
@@ -691,7 +691,7 @@ module.exports = function (app, callbacks) {
|
|
|
691
691
|
resolve(paytmResponse)
|
|
692
692
|
})
|
|
693
693
|
})
|
|
694
|
-
result = liveStatus.STATUS ==
|
|
694
|
+
result = liveStatus.STATUS == req.body.STATUS;
|
|
695
695
|
}
|
|
696
696
|
if (req.body.STATUS == 'TXN_FAILURE' && req.body.CANCELLED == "cancelled" && req.body.TXNID) {
|
|
697
697
|
isCancelled = true;
|
|
@@ -752,7 +752,7 @@ module.exports = function (app, callbacks) {
|
|
|
752
752
|
|
|
753
753
|
|
|
754
754
|
|
|
755
|
-
console.log("request_data ", req.originalUrl, JSON.stringify(req.
|
|
755
|
+
console.log("request_data ", req.originalUrl, JSON.stringify(req.body))
|
|
756
756
|
|
|
757
757
|
if (config.paytm_url) {
|
|
758
758
|
module.callback(req, res)
|