Gathering detailed insights and metrics for promptpay-qr
Gathering detailed insights and metrics for promptpay-qr
Gathering detailed insights and metrics for promptpay-qr
Gathering detailed insights and metrics for promptpay-qr
🏦 Mobile web app (https://promptpay2.me), command line app, and JavaScript library to generate QR Code payload for PromptPay.
npm install promptpay-qr
Typescript
Module System
Node Version
NPM Version
JavaScript (85%)
CSS (8.73%)
HTML (6.27%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
289 Stars
122 Commits
91 Forks
7 Watchers
36 Branches
5 Contributors
Updated on Jul 11, 2025
Latest Version
0.5.0
Package Id
promptpay-qr@0.5.0
Unpacked Size
21.68 kB
Size
6.02 kB
File Count
8
NPM Version
6.14.15
Node Version
14.17.6
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Mobile web app, command line app, and JavaScript library to generate QR Code payload for PromptPay.
The Bank of Thailand introduced a PromptPay QRCode Standard that works with most mobile banking apps in Thailand.
By generating a QR code, users of mobile banking apps can scan your QR code, and transfer money to your PromptPay account instantly.
In this repository:
Mobile app — Receive money from your home screen.
Command-line application — Receive money from your terminal.
promptpay-qr
JavaScript API — Generate a PromptPay QR code programmatically.
⚠️ Read this section to understand privacy implications of using PromptPay QR code ⚠️
The PromptPay QR code is based on EMV QRCPS Merchant Presented Mode specification.
The QR code contains the PromptPay ID. This means anyone who sees the QR code can find out your PromptPay ID (Phone number, National ID number, e-Wallet ID). Please treat the QR code like your personal information.
The QR code can optionally contain the transfer amount. Mobile banking apps use this number to pre-fill the amount for convenience.
You can quickly receive money from your home screen.
For example, if you want to collect 80 Baht from each friend, you can open the app, type in 80, and show the QR code. It takes less than 5 seconds.
To use it:
Open Chrome (on Android) or Safari (iOS).
Go to https://promptpay2.me/.
Set your PromptPay ID.
“Add to Home Screen.”
Features:
The app remembers your PromptPay ID, so you don’t have to enter the information each time.
It is a Progressive Web App, so you can add to home screen and it will work offline (Android).
No personal data is sent to any server. Your PromptPay ID stays in your phone/computer.
You can receive money from your terminal.
Install Node.js and run this command to install promptpay-qr
in your machine:
npm install -g promptpay-qr
Run this command to generate a QR code:
promptpay-qr 081-xxx-xxxx
promptpay-qr 1-xxxx-xxxxx-xx-x --amount 4.22
Then QR code will be printed in the terminal.
You can use this library to in your JavaScript app to generate a PromptPay QR code.
generatePayload(idOrPhoneNo, { amount })
Returns a string which should be rendered as a QR code.
These libraries are written by other developers:
These plugins/integrations are written by other developers:
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
Found 3/16 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
171 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More