node-paytmpg 5.2.0 → 5.2.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.
@@ -195,7 +195,9 @@ module.exports = function (app, callbacks) {
195
195
  };
196
196
  let checksum = await PaytmChecksum.generateSignature(JSON.stringify(initTxnbody), config.KEY)
197
197
  let initTxnUrl = config.paytm_url + `/theia/api/v1/initiateTransaction?mid=${params['MID']}&orderId=${params['ORDER_ID']}`;
198
-
198
+ if(config.mode){
199
+ initTxnbody["enablePaymentMode"] = JSON.parse(config.mode)
200
+ }
199
201
  request.post(
200
202
  initTxnUrl,
201
203
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-paytmpg",
3
- "version": "5.2.0",
3
+ "version": "5.2.1",
4
4
  "description": "Payment Gateway Integration using NodeJS",
5
5
  "main": "index.js",
6
6
  "scripts": {