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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-paytmpg",
3
- "version": "5.2.0",
3
+ "version": "5.2.3",
4
4
  "description": "Payment Gateway Integration using NodeJS",
5
5
  "main": "index.js",
6
6
  "scripts": {