Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

razorpay

Package Overview
Dependencies
Maintainers
3
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 1.7.1 to 2.0.0

9

dist/resources/orders.js

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

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