0.0.1 • Published 2 years ago

nestjs-pagseguro v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Node.js build and publish package

Running Code Coverage

codecov

CircleCI

This is an implementation of the PagSeguro to make payments in Brazil.

Installation

Install with yarn or npm: yarn or npm:

# 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.