Coder Social home page Coder Social logo

nontachaiwebdev / promptpay-qr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dtinth/promptpay-qr

0.0 2.0 0.0 134 KB

Library to generate QR Code payload for PromptPay.

Home Page: https://promptpay-qr.firebaseapp.com/

JavaScript 68.43% HTML 17.78% CSS 13.79%

promptpay-qr's Introduction

promptpay-qr

Web app, CLI app, and library to generate QR Code payload for PromptPay.

CLI

npm install -g promptpay-qr
promptpay-qr 081-xxx-xxxx
promptpay-qr 1-xxxx-xxxxx-xx-x --amount 4.22

QR code will be printed in the terminal

  • --amount 4.22 Specify the amount in THB.

Mobile Web

On your phone, you can go to https://promptpay-qr.firebaseapp.com/ to access the web version.

  • Your PromptPay ID is stored, so you don’t have to enter the information each visit.
  • It is a progressive web app, so you can add to home screen and it will work offline (Android).

API

generatePayload(idOrPhoneNo, { amount })

Returns a string which should be rendered as a QR code.

References

promptpay-qr's People

Contributors

dtinth avatar

Watchers

James Cloos avatar Nontachai Tantiponsawas avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.