This project is aimed at creating a QR Code for PromptPay transactions with various banks, allowing users to input their phone number and desired amount. It is compatible with all banks, such as KBank and SCB, among others.
I want to create a program that generates a QR Code and displays it on the terminal for receiving payments. So, I developed this project.
- Clone this project following the installation instructions.
- Installing all the necessary packages.
- Run the program.
# Clone project
$ git clone https://github.com/jumpogpo/generate-promptpay-qr.git
$ cd generate-promptpay-qr
# Install packages
$ npm install
# Build
$ npm run build
# Run
# Example node ./dist/index.js 0123456789 100
$ node ./dist/index.js phoneNumber amount
- TypeScript - https://www.typescriptlang.org/
- promptpay-qr - https://www.npmjs.com/package/promptpay-qr