node-paytmpg 5.2.0 → 5.2.3
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.
|
@@ -193,6 +193,10 @@ module.exports = function (app, callbacks) {
|
|
|
193
193
|
"email": params['EMAIL']
|
|
194
194
|
}
|
|
195
195
|
};
|
|
196
|
+
if(config.mode){
|
|
197
|
+
initTxnbody["enablePaymentMode"] = JSON.parse(config.mode)
|
|
198
|
+
}
|
|
199
|
+
|
|
196
200
|
let checksum = await PaytmChecksum.generateSignature(JSON.stringify(initTxnbody), config.KEY)
|
|
197
201
|
let initTxnUrl = config.paytm_url + `/theia/api/v1/initiateTransaction?mid=${params['MID']}&orderId=${params['ORDER_ID']}`;
|
|
198
202
|
|