thunderquoteteam / paynowqr Goto Github PK
View Code? Open in Web Editor NEWSingapore Paynow QR generator for node.js and javascript
License: Apache License 2.0
Singapore Paynow QR generator for node.js and javascript
License: Apache License 2.0
can it be set with time?
Meaning to let it expiry within 10 minutes?
Is your feature request related to a problem? Please describe.
Currently the QR automatically fill an amount only if its less than SGD1000
Describe the solution you'd like
It will be greater if the QR can also be generated for SGD1000 and above
Describe alternatives you've considered
I just set the editable parameter to true so the user can manually enter.
Hi ThunderQuoteTeam, I saw your thread on jtaych/PayNow-QR-Javascript#1 regarding that lib not being able to handle UENs, so I came over here to try your solution.
I am tried to run your example a few ways.
const PaynowQR = require("paynowqr");
let qrcode = new PaynowQR({
uen: "201403121W", //Required: UEN of company
amount: 500, //Specify amount of money to pay.
editable: true, //Whether or not to allow editing of payment amount. Defaults to false if amount is specified
expiry: "20201231", //Set an expiry date for the Paynow QR code (YYYYMMDD). If omitted, defaults to 5 years from current time.
refNumber: "TQINV-10001", //Reference number for Paynow Transaction. Useful if you need to track payments for recouncilation.
company: "ACME Pte Ltd.", //Company name to embed in the QR code. Optional.
});
When I installed via npm i paynowqr
I'm get an error on let qrcode = new PaynowQR({ ...
TypeError: PaynowQR is not a constructor
When I tried using the script tag instead it works.
<script src="https://unpkg.com/paynowqr@latest/dist/paynowqr.min.js"></script>
Any idea why that might happen?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.