
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
nestjs-razorpay
Advanced tools
This package implements a module which can be used to setup and inject Razorpay client instance into your nestjs application.
yarn add nestjs-razorpay
The simplest way to use nestjs-razorpay is to use RazorpayModule.forRoot
import { Module } from '@nestjs-common';
import { RazorpayModule } from 'nestjs-razorpay';
@Module({
imports: [
RazorpayModule.forRoot({
key_id: 'razorpay_key_id',
key_secret: 'razorpay_key_secret',
}),
],
})
export class AppModule {}
use @InjectRazorpay() decorator in any injectables to get a Razorpay client inside class
import { Injectable } from '@nestjs/common';
import { InjectRazorpay } from 'nestjs-razorpay';
import * as Razorpay from 'razorpay';
@Injectable()
export class TestService {
public constructor(
@InjectRazorpay() private readonly razorpayClient: Razorpay,
) {}
}
Read more about node-razorpay here.
Distributed under the MIT License. See LICENSE for more information.
FAQs
Easy integration for razorpay payment gateway into your nestjs app
The npm package nestjs-razorpay receives a total of 310 weekly downloads. As such, nestjs-razorpay popularity was classified as not popular.
We found that nestjs-razorpay demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.