node-pix
v1.5.2
Published
Generate and parse the pix payload for QRCodes
Downloads
9
Readme
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 [email protected]
- 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 [email protected].
This project is MIT licensed.
This README was generated with ❤️ by readme-md-generator