Comparing version 1.6.0 to 1.6.1
'use strict'; | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var _require = require('../utils/razorpay-utils'), | ||
@@ -61,3 +63,6 @@ normalizeDate = _require.normalizeDate, | ||
payment_capture = params.payment_capture, | ||
notes = params.notes; | ||
notes = params.notes, | ||
bank = params.bank, | ||
method = params.method, | ||
account_number = params.account_number; | ||
@@ -74,3 +79,3 @@ currency = currency || 'INR'; | ||
var data = Object.assign({ | ||
var data = Object.assign(_extends({ | ||
amount: amount, | ||
@@ -80,3 +85,3 @@ currency: currency, | ||
payment_capture: normalizeBoolean(payment_capture) | ||
}, normalizeNotes(notes)); | ||
}, !!bank && { bank: bank }, !!method && { method: method }, !!account_number && { account_number: account_number }), normalizeNotes(notes)); | ||
@@ -83,0 +88,0 @@ return api.post({ |
{ | ||
"name": "razorpay", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"description": "Official Node SDK for Razorpay API", | ||
@@ -5,0 +5,0 @@ "main": "dist/razorpay.js", |
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
44928
1164