1.5.2 ā¢ Published 2 years ago
node-pix v1.5.2
Welcome to Pix Payload š
Generate and parse the pix payload for QRCodes
Install
yarn add pix-payload
Usage
const Payload = require('pix-payload')
/* or with ES Modules */
import Payload from 'pix-payload'
/* or using named export */
import { Payload } from 'pix-payload'
const payload = Payload.generate({
pixKey: '123e4567-e12b-12d1-a456-426655440000',
merchant: {
name: 'Fulano de Tal',
city: 'BRASILIA'
}
})
console.log(payload) // 00020126580014br.gov.bcb.pix0136123e4567-e12b-12d1-a456-4266554400005204000053039865802BR5913Fulano de Tal6008BRASILIA62070503***63041D3D
Run tests
yarn run test
Author
š¤ Pedrinho Lemes pedroca21265@gmail.com
- Website: https://pedrinholemes.vercel.app
- Twitter: @pedrinho_lemes
- Github: @pedrinholemes
š¤ Contributing
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Show your support
Give a āļø if this project helped you!
š License
Copyright Ā© 2021 Pedrinho Lemes <pedroca21265@gmail.com>.
This project is MIT licensed.
This README was generated with ā¤ļø by readme-md-generator