@devjoyvn/qrcode-payment
v0.0.3
Published
Library QR Code Payment
Downloads
1
Maintainers
Readme
Thư viện hỗ trợ tạo QrCode Payment chuẩn VietQR, NAPAS
Cài đặt thư viện
npm install @devjoyvn/qrcode-payment@latest
Sử dụng
import { BankKey, QRCodeGenerator } from '@devjoyvn/qrcode-payment';
// init
let qr = new QRCodeGenerator();
// generator
const dataRaw = qr.createQrCode({
amount: 10000,
bankKey: BankKey.TPBANK,
bankNumber: '01579815555',
content: 'by me coffee',
isCard: false
})
// show log
console.log(`Result: ${dataRaw}`);