New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

razorpay

Package Overview
Dependencies
Maintainers
4
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

razorpay - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

4

CHANGELOG.md
# 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.

6

dist/resources/orders.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc