kbankshop-promtpay-generator
v1.0.6
Published
A simple TypeScript utility for generating **KBank Shop PromptPay QR Codes** with custom amounts using the **EMVCo (CRC16-CCITT False)** standard.
Downloads
682
Readme
📦 KBankShop PromptPay QR Generator
A simple TypeScript utility for generating KBank Shop PromptPay QR Codes with custom amounts using the EMVCo (CRC16-CCITT False) standard.
✨ Features
- ✅ Generate PromptPay QR from KBank Shop raw payload
- ✅ Supports dynamic amount injection
- ✅ Auto CRC16 recalculation (EMVCo compliant)
- ✅ Lightweight & easy to use
🚀 Installation
npm install kbankshop-promptpay-generator
import { createKshopQRCode } from "./index";
const raw = "00020101021129370016A000000677010111011300668123456785802TH5303764XXXX5802TH6304YYYY";
const qr = createKshopQRCode(raw, 100.50);
console.log(qr);