Skip to content

daffodilistic/pyPayNowSg

Repository files navigation

pyPayNowSg

Package Repository Supported Python Versions Test Downloads per week

Generate PayNow Singapore QR codes in Python

Summary

What it says on the tin. This is mainly for frameworks/backends which rely on generation of a PayNow QR code without the use of NodeJS/JavaScript, such as sending e-mails or generating PDF files.

Documentation

This library only generates the ASCII code to be embedded in a QR code image generator. However, there is sample code to generate the QR code image using Pillow. See tests/test_payload.py for an example.

TODO

  • Raise Exceptions when user-specified texts/parameters exceed character limits as per the EMVCO specifications
  • Enforce QR code version (version 11?) to fix output image size

References

Social

Like my work? Buy me a coffee!

ko-fi