node-paytmpg 7.5.8 → 7.5.9

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.
@@ -136,12 +136,12 @@ class PaymentController {
136
136
  }
137
137
  }
138
138
  getProviderInstance(providerName, config) {
139
- switch (providerName) {
140
- case 'PayU':
139
+ switch (providerName.toLocaleLowerCase()) {
140
+ case 'PayU'.toLocaleLowerCase():
141
141
  return new payu_1.default(config);
142
- case 'OpenMoney':
142
+ case 'OpenMoney'.toLocaleLowerCase():
143
143
  return new open_money_1.default(config);
144
- case 'RazorPay':
144
+ case 'RazorPay'.toLocaleLowerCase():
145
145
  return new razorpay_1.default({ key_id: config.KEY, key_secret: config.SECRET });
146
146
  default:
147
147
  return null;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-paytmpg",
3
- "version": "7.5.8",
3
+ "version": "7.5.9",
4
4
  "description": "Payment Gateway Integration using NodeJS",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-paytmpg",
3
- "version": "7.5.8",
3
+ "version": "7.5.9",
4
4
  "description": "Payment Gateway Integration using NodeJS",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",