Comparing version 1.7.1 to 2.0.0
@@ -5,2 +5,4 @@ 'use strict'; | ||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } | ||
var _require = require('../utils/razorpay-utils'), | ||
@@ -60,2 +62,3 @@ normalizeDate = _require.normalizeDate, | ||
var callback = arguments[1]; | ||
var amount = params.amount, | ||
@@ -66,5 +69,3 @@ currency = params.currency, | ||
notes = params.notes, | ||
bank = params.bank, | ||
method = params.method, | ||
account_number = params.account_number; | ||
otherParams = _objectWithoutProperties(params, ['amount', 'currency', 'receipt', 'payment_capture', 'notes']); | ||
@@ -86,3 +87,3 @@ currency = currency || 'INR'; | ||
payment_capture: normalizeBoolean(payment_capture) | ||
}, !!bank && { bank: bank }, !!method && { method: method }, !!account_number && { account_number: account_number }), normalizeNotes(notes)); | ||
}, otherParams), normalizeNotes(notes)); | ||
@@ -89,0 +90,0 @@ return api.post({ |
{ | ||
"name": "razorpay", | ||
"version": "1.7.1", | ||
"version": "2.0.0", | ||
"description": "Official Node SDK for Razorpay API", | ||
@@ -36,10 +36,10 @@ "main": "dist/razorpay.js", | ||
"deep-equal": "^1.0.1", | ||
"mocha": "^3.1.0", | ||
"nock": "^9.0.2" | ||
"mocha": "^3.5.3", | ||
"nock": "^9.2.5" | ||
}, | ||
"dependencies": { | ||
"promise": "^8.0.1", | ||
"request": "^2.75.0", | ||
"request-promise": "^4.1.1" | ||
"request": "^2.85.0", | ||
"request-promise": "^4.2.2" | ||
} | ||
} |
@@ -12,3 +12,3 @@ # Razorpay Node SDK | ||
```bash | ||
npm i razorpay --save | ||
npm i razorpay | ||
``` | ||
@@ -15,0 +15,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46606
1194
Updatedrequest@^2.85.0
Updatedrequest-promise@^4.2.2