1.5.2 ā€¢ Published 2 years ago

node-pix v1.5.2

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

Welcome to Pix Payload šŸ‘‹

Version Documentation License: MIT Twitter: pedrinho_lemes

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

šŸ¤ 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