@pqrux/simple-pix
v1.0.3
Published
Simple and lightweight package for generating PIX BR Codes and QR Codes.
Downloads
3
Readme
simple-pix
The simplest way to generate your pix QR Codes!
- Install
npm i @pqrux/simple-pix
- Import
import MakePIX from '@pqrux/simple-pix';
- Generate!
MakePIX({
pixKey: 'your pix key',
merchantName: 'your full name',
merchantCity: 'your city',
uniquePayment: false, //optional
categoryCode: '0000' //optional
currencyCode: '999' //optional
value: 30.4, //optional
countryCode: 'BR' //optional
postalCode: '06624444', //optional
txID: '***' //optional
}, {
generateBase64: true //optional
})
.then(({
brCode, //string
base64QRCode //string?
}) => {
...
})