프로젝트
GitHub에서 보기
joseviniciusnunes/qrcode-pix
소개
QR Code generator for the Brazilian payment system PIX
비즈니스 및 금융측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original
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.
관련 프로젝트 살펴보기
불러오는 중…