npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

razorpayx-nodejs-sdk

v2.0.4

Published

This is implementation of razorpayx api in NodeJS

Downloads

116

Readme

RazorpayX NodeJS SDK

Note: This is not an official sdk.

Official documentation: https://razorpay.com/docs/razorpayx/api/

Repository documenation: https://razorpayx-docs.netlify.app/

Installation

npm install razorpayx-nodejs-sdk

yarn add razorpayx-nodejs-sdk

Usage

const { Contact } = require("razorpayx-nodejs-sdk")("key", "secret");

// create new contact
Contact.create({
  name: "Demo User",
  email: "[email protected]",
  contact: "12131213113"
})

Services

Contact

A Contact is an entity to whom payouts can be made through supported modes such as UPI, IMPS, NEFT and RTGS.

Available Methods

create - Create a contact. Example:

Contact.create(contactInfo)

update - updates a contact Example:

Contact.update("contact_id", contactInfo)

You can find contactInfo possibles values here.

getAll - Get all contacts Example:

Contact.getAll(filterOptions)

You can find filterOptions possibles values here

get - Get contact by contact id

Example:

Contact.get("contact_id")

activate - Activate contact by contact id

Contact.activate("contact_id")

deactivate - Deactivate contact by contact id

Contact.deactivate("contact_id")

FundAccount

Fund accounts are accounts associated with a contact. Payouts are made to fund accounts.

Available Methods

create - Create a fund account. Example:

FundAccount.create(accountInfo)

You can find accountInfo possibles values here

getAll - Fetches all the fund accounts

FundAccount.getAll(filterOptions)

You can find filterOptions possibles values here

get - Get fund account by account id

Example:

FundAccount.get("account_id")

validate - Validate the account

FundAccount.validate(account)

You can find account possibles values for validating bank here and for validating VPA here

activate - Activate fund account by account id

FundAccount.activate("account_id")

deactivate - Deactivate fund account by account id

FundAccount.deactivate("account_id")

Payout

A payout is the transfer of funds from your business account to a contact's fund account.

Available Methods

create - Create a payout. Example:

Payout.create(payoutInfo)

You can find payoutInfo possibles values here

getAll - Fetches all the payouts

Payout.getAll(account_number, filterOptions)

account_number: The account from which you want to make the payout. Account details can be found on the RazorpayX Dashboard. For example, 7878780080316316.

You can find filterOptions possibles values here

get - Fetches details of a payout by payout id

Example:

Payout.get("payout_id")

cancel - Cancels a queued payout.

Payout.cancel("payout_id")

PayoutLink

Payout Links enable you to make payouts to those contacts whose fund accounts details are not readily available with you. You can use these links to collect the customer's fund account details and then process refunds, reimbursement and cashbacks to them without additional follow up.

Available Methods

create - Create a payout link. Example:

PayoutLink.create(payoutLinkInfo)

You can find payoutLinkInfo possibles values here

getAll - Fetches all the payout links

PayoutLink.getAll(filterOptions)

You can find filterOptions possibles values here

get - Fetches details of a payout link by payout link id

Example:

PayoutLink.get("payout_link_id")

cancel - Cancels a issued payout link.

PayoutLink.cancel("payout_link_id")

Transactions

The inflow of funds to your business account, payouts to a contact's fund account and reversals are all recorded as transactions against your business account. You can fetch details of a particular transaction or details of all transactions via the below APIs.

Available Methods

getAll - Fetches all the transactions

Transactions.getAll(accountNumber, filterOptions)

account_number: The account from which you want to get the transaction details. Account details can be found on the RazorpayX Dashboard. For example, 7878780080316316.

You can find filterOptions possibles values here

get - Fetches details of a transaction by transaction id

Example:

Transactions.get("transaction_id")

Issues

If you find any issue please add it to the issues tab.

Missing any important feature? Create an issue here: here

PRs are welcome.