node-paytmpg 5.1.4 → 5.1.5

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.
@@ -8,7 +8,7 @@ class OpenMoney {
8
8
  npconfig.accesskey = npconfig.KEY
9
9
  npconfig.secretkey = npconfig.SECRET
10
10
  npconfig.url = npconfig.open_money_url
11
- npconfig.script_url = (npconfig.url.indexOf("sandbox") == -1) ? "https://payments.open.money/layer" : "https://sandbox-payments.open.money/layer"
11
+ npconfig.script_url = (npconfig.url && npconfig.url.indexOf("sandbox") == -1) ? "https://payments.open.money/layer" : "https://sandbox-payments.open.money/layer"
12
12
  this.config = npconfig;
13
13
 
14
14
  }
@@ -511,4 +511,4 @@ function ksort(obj) {
511
511
  }
512
512
 
513
513
 
514
- module.exports = OpenMoney;
514
+ module.exports = OpenMoney;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-paytmpg",
3
- "version": "5.1.4",
3
+ "version": "5.1.5",
4
4
  "description": "Payment Gateway Integration using NodeJS",
5
5
  "main": "index.js",
6
6
  "scripts": {