0.0.1 • Published 2 years ago
nestjs-pagseguro v0.0.1
This is an implementation of the
PagSeguro
to make payments in Brazil.
Installation
Install with yarn or npm:
yarn
ornpm
:
# yarn
yarn add nestjs-pagseguro
# npm
npm i nestjs-pagseguro --save
# pnpm
pnpm add nestjs-pagseguro --save
Usage example:
// common.module.ts
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { PagSeguroModule } from 'nestjs-pagseguro';
import { CommonService } from './common.service';
@Module({
imports: [
PagSeguroModule.register({
axiosOptions: {
baseURL: process.env.API_PAGSEGURO_BASE_URL,
},
authorization: {
apiKey: process.env.API_PAGSEGURO_API_KEY,
token: process.env.API_PAGSEGURO_API_TOKEN,
},
notification_url: process.env.notification_url,
}),
],
providers: [CommonService],
})
export class CommonModule {}
🤝 Contributing
Contributions, issues and feature requests are welcome!Feel free to check issues page.
Show your support
Give a ⭐️ if this project helped you!
Or buy me a coffee 🙌🏾
📝 License
Copyright © 2022 Hebert F Barros. This project is MIT licensed.
0.0.1
2 years ago