
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
@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.
The npm package @devtools-bp/nestjs-paystack receives a total of 4 weekly downloads. As such, @devtools-bp/nestjs-paystack popularity was classified as not popular.
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
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.