
Research
SAP CAP npm Packages Hit by Supply Chain Attack
Compromised SAP CAP npm packages download and execute unverified binaries, creating urgent supply chain risk for affected developers and CI/CD environments.
@devtools-bp/nestjs-paystack
Advanced tools
Powerful library that provides seamless integration with the Paystack payment gateway for your NestJS applications. You can easily handle payment transactions with minimal effort.
The wrapper provides a convenient way to integrate Paystack payment functionality into your NestJS applications.
npm install @devtools-bp/nestjs-paystack
or
yarn add @devtools-bp/nestjs-paystack
To use the nestjs-paystack, you need to provide your Paystack API key. You can obtain the API key from the Paystack dashboard. Once you have the API key, you can configure the wrapper in your NestJS application.
import { Module } from '@nestjs/common';
import { NsPaystackModule } from '@devtools-bp/nestjs-paystack';
@Module({
imports: [
NsPaystackModule.register({
secretKey: 'PAYSTACK_SECRET_KEY'
})
]
})
export class AppModule {}
import { Module } from '@nestjs/common';
import { NsPaystackModule } from '@devtools-bp/nestjs-paystack';
import { ConfigService } from '@nestjs/config';
@Module({
imports: [
NsPaystackModule.registerAsync({
useFactory: (configService: ConfigService) => ({
secretKey: configService.get('PAYSTACK_SECRET_KEY')
}),
inject: [ConfigService]
})
]
})
export class AppModule {}
import { Injectable } from '@nestjs/common';
import {
PsTransactionsService,
PsInitializeTransactionRequestModel,
PsInitializeTransactionResponseModel
} from '@devtools-bp/nestjs-paystack';
@Injectable()
export class TransactionsService {
constructor(private readonly psTransactionsService: PsTransactionsService) {}
initializeTransaction(
payload: PsInitializeTransactionRequestModel
): Promise<PsInitializeTransactionResponseModel> {
return this.psTransactionsService.initializeTransaction(payload);
}
}
import { Body, Controller, Post } from '@nestjs/common';
import {
PsInitializeTransactionRequestModel,
PsInitializeTransactionResponseModel
} from '@devtools-bp/nestjs-paystack';
import { TransactionsService } from '../services/transactions.service';
@Controller('transaction')
export class TransactionController {
constructor(private readonly transactionsService: TransactionsService) {}
@Post('initialize')
initialize(
@Body() payload: PsInitializeTransactionRequestModel
): Promise<PsInitializeTransactionResponseModel> {
return this.transactionsService.initializeTransaction(payload);
}
}
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository. Learn how to contribute to the project.
The devtools-bp monorepo is released under the MIT License. Please make sure you understand its terms and conditions when using the libraries and tools provided in this repository.
FAQs
Powerful library that provides seamless integration with the Paystack payment gateway for your NestJS applications. You can easily handle payment transactions with minimal effort.
We found that @devtools-bp/nestjs-paystack 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.

Research
Compromised SAP CAP npm packages download and execute unverified binaries, creating urgent supply chain risk for affected developers and CI/CD environments.

Company News
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.

Research
/Security News
Socket is tracking cloned Open VSX extensions tied to GlassWorm, with several updated from benign-looking sleepers into malware delivery vehicles.