Comparing version 2.0.4 to 2.0.5
# Changelog | ||
## 2.0.5 - 2019-08-12 | ||
- Added support for Order creation amount=0 + method=emandate. | ||
- Dependency updates. | ||
## 2.0.4 - 2019-03-06 | ||
@@ -4,0 +8,0 @@ - Added `recipient_settlement_id` parameter for Transfers. |
@@ -67,7 +67,8 @@ 'use strict'; | ||
notes = params.notes, | ||
otherParams = _objectWithoutProperties(params, ['amount', 'currency', 'receipt', 'payment_capture', 'notes']); | ||
method = params.method, | ||
otherParams = _objectWithoutProperties(params, ['amount', 'currency', 'receipt', 'payment_capture', 'notes', 'method']); | ||
currency = currency || 'INR'; | ||
if (!amount) { | ||
if (!(amount || method === 'emandate' && amount === 0)) { | ||
throw new Error('`amount` is mandatory'); | ||
@@ -84,2 +85,3 @@ } | ||
receipt: receipt, | ||
method: method, | ||
payment_capture: normalizeBoolean(payment_capture) | ||
@@ -86,0 +88,0 @@ }, otherParams), normalizeNotes(notes)); |
{ | ||
"name": "razorpay", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "Official Node SDK for Razorpay API", | ||
@@ -5,0 +5,0 @@ "main": "dist/razorpay", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
49754
1233
0