├── .eslintrc ├── .github ├── commit-convention.md └── workflows │ └── deploy.yml ├── .gitignore ├── .vscode └── settings.json ├── README.md ├── package.json ├── src ├── constants │ ├── bank-apps.ts │ ├── bank-code.ts │ ├── bank-key.ts │ ├── banks.ts │ ├── index.ts │ └── qr-pay.ts ├── crc16.ts ├── decodeQr.ts ├── images │ ├── abbank-icon.png │ ├── acb-icon.png │ ├── agribank-icon.png │ ├── bacabank-icon.png │ ├── banviet-icon.png │ ├── baoviet-icon.png │ ├── bidc-icon.png │ ├── bidv-icon.png │ ├── cake-icon.png │ ├── cbbank-icon.png │ ├── cimb-icon.png │ ├── coopbank-icon.png │ ├── dbsbank-icon.png │ ├── dongabank-icon.png │ ├── eximbank-icon.png │ ├── gpbank-icon.png │ ├── hdbank-icon.png │ ├── hongleongbank-icon.png │ ├── hsbc-icon.png │ ├── ibkhcm-icon.png │ ├── ibkhn-icon.png │ ├── indovinabank-icon.png │ ├── kasikorn-icon.png │ ├── kienlongbank-icon.png │ ├── kookminhcm-icon.png │ ├── kookminhn-icon.png │ ├── lienvietpostbank-icon.png │ ├── mbbank-icon.png │ ├── msb-icon.png │ ├── namabank-icon.png │ ├── ncb-icon.png │ ├── nonghyup-icon.png │ ├── ocb-icon.png │ ├── oceanbank-icon.png │ ├── pgbank-icon.png │ ├── publicbank-icon.png │ ├── pvcombank-icon.png │ ├── sacombank-icon.png │ ├── saigonbank-icon.png │ ├── scb-icon.png │ ├── seabank-icon.png │ ├── shb-icon.png │ ├── shinhanbank-icon.png │ ├── standardcharteredbank-icon.png │ ├── techcombank-icon.png │ ├── timo-icon.png │ ├── tpbank-icon.png │ ├── ubank-icon.png │ ├── uob-icon.png │ ├── vib-icon.png │ ├── vietabank-icon.png │ ├── vietbank-icon.png │ ├── vietcombank-icon.png │ ├── vietinbank-icon.png │ ├── vpbank-icon.png │ ├── vrb-icon.png │ └── wooribank-icon.png ├── index.ts ├── types.ts ├── utilts.ts ├── vietqr │ └── encodeVietQr.ts └── vnpay │ └── encodeVnPay.ts ├── test ├── test-airpay-qr.test.ts ├── test-decode-vietqr.test.ts ├── test-encode-vietqr.test.ts └── test-vnpay-qr.test.ts └── tsconfig.json /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/.eslintrc -------------------------------------------------------------------------------- /.github/commit-convention.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/.github/commit-convention.md -------------------------------------------------------------------------------- /.github/workflows/deploy.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/.github/workflows/deploy.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "standard.autoFixOnSave": true 3 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/package.json -------------------------------------------------------------------------------- /src/constants/bank-apps.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/constants/bank-apps.ts -------------------------------------------------------------------------------- /src/constants/bank-code.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/constants/bank-code.ts -------------------------------------------------------------------------------- /src/constants/bank-key.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/constants/bank-key.ts -------------------------------------------------------------------------------- /src/constants/banks.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/constants/banks.ts -------------------------------------------------------------------------------- /src/constants/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/constants/index.ts -------------------------------------------------------------------------------- /src/constants/qr-pay.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/constants/qr-pay.ts -------------------------------------------------------------------------------- /src/crc16.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/crc16.ts -------------------------------------------------------------------------------- /src/decodeQr.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/decodeQr.ts -------------------------------------------------------------------------------- /src/images/abbank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/abbank-icon.png -------------------------------------------------------------------------------- /src/images/acb-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/acb-icon.png -------------------------------------------------------------------------------- /src/images/agribank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/agribank-icon.png -------------------------------------------------------------------------------- /src/images/bacabank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/bacabank-icon.png -------------------------------------------------------------------------------- /src/images/banviet-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/banviet-icon.png -------------------------------------------------------------------------------- /src/images/baoviet-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/baoviet-icon.png -------------------------------------------------------------------------------- /src/images/bidc-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/bidc-icon.png -------------------------------------------------------------------------------- /src/images/bidv-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/bidv-icon.png -------------------------------------------------------------------------------- /src/images/cake-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/cake-icon.png -------------------------------------------------------------------------------- /src/images/cbbank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/cbbank-icon.png -------------------------------------------------------------------------------- /src/images/cimb-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/cimb-icon.png -------------------------------------------------------------------------------- /src/images/coopbank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/coopbank-icon.png -------------------------------------------------------------------------------- /src/images/dbsbank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/dbsbank-icon.png -------------------------------------------------------------------------------- /src/images/dongabank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/dongabank-icon.png -------------------------------------------------------------------------------- /src/images/eximbank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/eximbank-icon.png -------------------------------------------------------------------------------- /src/images/gpbank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/gpbank-icon.png -------------------------------------------------------------------------------- /src/images/hdbank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/hdbank-icon.png -------------------------------------------------------------------------------- /src/images/hongleongbank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/hongleongbank-icon.png -------------------------------------------------------------------------------- /src/images/hsbc-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/hsbc-icon.png -------------------------------------------------------------------------------- /src/images/ibkhcm-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/ibkhcm-icon.png -------------------------------------------------------------------------------- /src/images/ibkhn-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/ibkhn-icon.png -------------------------------------------------------------------------------- /src/images/indovinabank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/indovinabank-icon.png -------------------------------------------------------------------------------- /src/images/kasikorn-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/kasikorn-icon.png -------------------------------------------------------------------------------- /src/images/kienlongbank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/kienlongbank-icon.png -------------------------------------------------------------------------------- /src/images/kookminhcm-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/kookminhcm-icon.png -------------------------------------------------------------------------------- /src/images/kookminhn-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/kookminhn-icon.png -------------------------------------------------------------------------------- /src/images/lienvietpostbank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/lienvietpostbank-icon.png -------------------------------------------------------------------------------- /src/images/mbbank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/mbbank-icon.png -------------------------------------------------------------------------------- /src/images/msb-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/msb-icon.png -------------------------------------------------------------------------------- /src/images/namabank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/namabank-icon.png -------------------------------------------------------------------------------- /src/images/ncb-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/ncb-icon.png -------------------------------------------------------------------------------- /src/images/nonghyup-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/nonghyup-icon.png -------------------------------------------------------------------------------- /src/images/ocb-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/ocb-icon.png -------------------------------------------------------------------------------- /src/images/oceanbank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/oceanbank-icon.png -------------------------------------------------------------------------------- /src/images/pgbank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/pgbank-icon.png -------------------------------------------------------------------------------- /src/images/publicbank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/publicbank-icon.png -------------------------------------------------------------------------------- /src/images/pvcombank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/pvcombank-icon.png -------------------------------------------------------------------------------- /src/images/sacombank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/sacombank-icon.png -------------------------------------------------------------------------------- /src/images/saigonbank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/saigonbank-icon.png -------------------------------------------------------------------------------- /src/images/scb-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/scb-icon.png -------------------------------------------------------------------------------- /src/images/seabank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/seabank-icon.png -------------------------------------------------------------------------------- /src/images/shb-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/shb-icon.png -------------------------------------------------------------------------------- /src/images/shinhanbank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/shinhanbank-icon.png -------------------------------------------------------------------------------- /src/images/standardcharteredbank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/standardcharteredbank-icon.png -------------------------------------------------------------------------------- /src/images/techcombank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/techcombank-icon.png -------------------------------------------------------------------------------- /src/images/timo-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/timo-icon.png -------------------------------------------------------------------------------- /src/images/tpbank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/tpbank-icon.png -------------------------------------------------------------------------------- /src/images/ubank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/ubank-icon.png -------------------------------------------------------------------------------- /src/images/uob-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/uob-icon.png -------------------------------------------------------------------------------- /src/images/vib-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/vib-icon.png -------------------------------------------------------------------------------- /src/images/vietabank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/vietabank-icon.png -------------------------------------------------------------------------------- /src/images/vietbank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/vietbank-icon.png -------------------------------------------------------------------------------- /src/images/vietcombank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/vietcombank-icon.png -------------------------------------------------------------------------------- /src/images/vietinbank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/vietinbank-icon.png -------------------------------------------------------------------------------- /src/images/vpbank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/vpbank-icon.png -------------------------------------------------------------------------------- /src/images/vrb-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/vrb-icon.png -------------------------------------------------------------------------------- /src/images/wooribank-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/images/wooribank-icon.png -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/utilts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/utilts.ts -------------------------------------------------------------------------------- /src/vietqr/encodeVietQr.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/vietqr/encodeVietQr.ts -------------------------------------------------------------------------------- /src/vnpay/encodeVnPay.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/src/vnpay/encodeVnPay.ts -------------------------------------------------------------------------------- /test/test-airpay-qr.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/test/test-airpay-qr.test.ts -------------------------------------------------------------------------------- /test/test-decode-vietqr.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/test/test-decode-vietqr.test.ts -------------------------------------------------------------------------------- /test/test-encode-vietqr.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/test/test-encode-vietqr.test.ts -------------------------------------------------------------------------------- /test/test-vnpay-qr.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/test/test-vnpay-qr.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hunghg255/vn-qr-pay/HEAD/tsconfig.json --------------------------------------------------------------------------------