项目
在 GitHub 查看
joseviniciusnunes/qrcode-pix
关于
QR Code generator for the Brazilian payment system PIX
商业与金融实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
QR Code PIX - NodeJS and Browser
QR Code generator for the Brazilian payment system PIX
Installation
yarn add qrcode-pix --exact
or
npm i qrcode-pix --save-exact
Quick Start
import { QrCodePix } from 'qrcode-pix';
const qrCodePix = QrCodePix({
version: '01',
key: '[email protected]', //or any PIX key
name: 'Fulano de Tal',
city: 'SAO PAULO',
transactionId: 'YOUR_TRANSACTION_ID', //max 25 characters
message: 'Pay me :)',
cep: '99999999',
value: 150.99,
});
console.log(qrCodePix.payload()); // '00020101021126510014BR.GOV.BCB.PIX...'
console.log(await qrCodePix.base64()); // 'data:image/png;base64,iVBORw0...'
Interface
interface IParameter {
version: string;
key: string;
city: string;
name: string;
value?: number;
transactionId?: string;
message?: string;
cep?: string;
currency?: number; //default: 986 ('R$')
countryCode?: string; //default: 'BR'
}
interface IResponse {
payload: () => string; //payload for QrCode
base64: (options?) => Promise<string>; //QrCode image base64
}
Specification
Latest revision version: 3.0.2 (2022-02-04)
Specification by Bacen (DOC)
Donate
Contribute to keeping revisions up to date.
探索相关项目
加载中…