@ballin-team/paysync-nubank
v1.1.2
Published
<h1 align="center"> <img src="https://docs.nupaybusiness.com.br/images/logotipo.png" alt="NuPay for Business" /> </h1>
Downloads
3
Maintainers
Readme
:package: Content
Technologies
We are using the following technologies:
- axios - used to send request to the API;
- tweetnacl - used to check the authenticity of signature in each response (Nubank recommendation);
Getting Started
This lib aims to centralize all the endpoints exposed in the NuPay for Business API.
How to install
npm install @ballin-team/paysync-nubank
Config
import { NubankClient } from "@ballin-team/paysync-nubank";
const client = new NubankClient({
testEnv: true, // define the environment (sandbox or production)
timeout: 10000, // define the resquest timeout
credentials: { // the credentials used to access the API
payment: {
merchantKey: 'XXXXXX',
merchantToken: 'XXXXXXXXXX',
}
}
});