Skip to content

pedrinslzx/node-pix

Repository files navigation

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 [email protected]

🤝 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages