Git Product home page Git Product logo

paynowqr's People

Contributors

limexd-em avatar thenewcoda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

paynowqr's Issues

QR to support above SGD1000 (not editable)

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.

TypeError: PaynowQR is not a constructor

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?

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.