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

razorpay

Package Overview
Dependencies
Maintainers
6
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.8.5 to 2.8.6

114

dist/razorpay.d.ts

@@ -1,1 +0,113 @@

declare module "razorpay";
import API, { RazorpayHeaders } from './types/api'
import addons from "./types/addons"
import plans from "./types/plans"
import items from "./types/items"
import fundAccount from "./types/fundAccount"
import invoices from "./types/invoices"
import transfers from "./types/transfers"
import settlements from './types/settlements'
import orders from './types/orders'
import refunds from './types/refunds'
import qrCode from './types/qrCode'
import virtualAccounts from './types/virtualAccounts'
import payments from './types/payments'
import subscriptions from './types/subscriptions'
import paymentLink from './types/paymentLink'
import cards from './types/cards'
import { validateWebhookSignature } from "./utils/razorpay-utils"
import customers from './types/customers'
interface IRazorpayConfig {
key_id: string;
key_secret?: string;
headers?: RazorpayHeaders;
}
declare class Razorpay {
static VERSION: string
static validateWebhookSignature: typeof validateWebhookSignature
constructor(config: IRazorpayConfig)
api: API
/**
* Customers Entity
* @see https://razorpay.com/docs/api/customers/
*/
customers: ReturnType<typeof customers>
/**
* Addons Entity
* @see https://razorpay.com/docs/api/payments/subscriptions/#add-on
*/
addons: ReturnType<typeof addons>
/**
* Plans Entity
* @see https://razorpay.com/docs/api/payments/subscriptions/#plans
*/
plans: ReturnType<typeof plans>
/**
* Orders Entity
* @see https://razorpay.com/docs/api/orders
*/
orders: ReturnType<typeof orders>
/**
* Orders Entity
* @see https://razorpay.com/docs/api/payments
*/
payments: ReturnType<typeof payments>
/**
* Payments Entity
* @see https://razorpay.com/docs/api/payments/route/transfers
*/
transfers: ReturnType<typeof transfers>
/**
* Transfers Entity
* @see https://razorpay.com/docs/api/refunds
*/
refunds: ReturnType<typeof refunds>
/**
* Cards Entity
*/
cards: ReturnType<typeof cards>
/**
* FundaAccount Entity
* @see https://razorpay.com/docs/api/x/fund-accounts/
*/
fundAccount: ReturnType<typeof fundAccount>
/**
* Items Entity
* @see https://razorpay.com/docs/payments/invoices/items/api/
*/
items: ReturnType<typeof items>
/**
* PaymentLinks Entity
* @see https://razorpay.com/docs/payments/payment-links/apis
*/
paymentLink: ReturnType<typeof paymentLink>
/**
* Invoices Entity
* @see https://razorpay.com/docs/payments/invoices/apis/
*/
invoices: ReturnType<typeof invoices>
/**
* QrCode Entity
* @see https://razorpay.com/docs/payments/qr-codes/apis/
*/
qrCode: ReturnType<typeof qrCode>
/**
* Subscrptions Entity
* @see https://razorpay.com/docs/api/payments/subscriptions/#subscriptions
*/
subscriptions: ReturnType<typeof subscriptions>
/**
* Settlements Entity
* @see https://razorpay.com/docs/api/settlements
*/
settlements: ReturnType<typeof settlements>
/**
* VirtualAccounts Entity
* @see https://razorpay.com/docs/api/payments/smart-collect/
*/
virtualAccounts: ReturnType<typeof virtualAccounts>
}
export = Razorpay

4

dist/resources/orders.js

@@ -73,6 +73,7 @@ 'use strict';

receipt = params.receipt,
partial_payment = params.partial_payment,
payment_capture = params.payment_capture,
notes = params.notes,
method = params.method,
otherParams = _objectWithoutProperties(params, ['amount', 'currency', 'receipt', 'payment_capture', 'notes', 'method']);
otherParams = _objectWithoutProperties(params, ['amount', 'currency', 'receipt', 'partial_payment', 'payment_capture', 'notes', 'method']);

@@ -90,2 +91,3 @@ currency = currency || 'INR';

method: method,
partial_payment: normalizeBoolean(partial_payment),
payment_capture: normalizeBoolean(payment_capture)

@@ -92,0 +94,0 @@ }, otherParams), normalizeNotes(notes));

@@ -85,9 +85,4 @@ "use strict";

var data = {
status: 'closed'
};
return api.patch({
url: BASE_URL + "/" + virtualAccountId,
data: data
return api.post({
url: BASE_URL + "/" + virtualAccountId + "/close"
}, callback);

@@ -94,0 +89,0 @@ },

{
"name": "razorpay",
"version": "2.8.5",
"version": "2.8.6",
"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