PayNow QR Library
This library is a simple library to generate PayNow QR code for Singapore banks. It is written in Python and can be used to generate PayNow QR code for both personal and business accounts.
Installation
pip install paynowqr
Usage
from paynowqr import PayNowQR
# Personal Account (mobile number)
qr = PayNowQR("Mobile", "+6591234567", "John Lim", 2.00, "Bubble Tea")
qr.save("paynow_personal.png")
# Business Account (UEN number)
qr = PayNowQR("UEN", "S12345678W", "Running Bananas", 1000.00, "Machine Maintainance")
qr.save("paynow_business.png")
Parameters
- Type: Type of PayNow account. It can be either "Mobile" or "UEN".
- Identifier: Mobile number for personal account or UEN number for business account.
- Name: Name of the account holder or business.
- Amount: Amount to be paid.
- Description: Description of the payment.
- Expiry Date (Optional): Expiry date of the QR code. Default is None. Format is "YYYYMMDD".
- QR Code Colour (Optional): Colour of the QR code. Default is "purple".
Output
The above code will generate two QR codes, one for personal account and one for business account. The QR code will be saved as paynow_personal.png and paynow_business.png respectively.
License
This library is released under the MIT License.
Metadata
Release files for PayNowQR 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| paynowqr-0.3.tar.gz | 2.6 kB | Without provenance | Details for paynowqr-0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PayNowQR-0.3-py3-none-any.whl | Python 3 | none | any | Details for PayNowQR-0.3-py3-none-any.whl |
Total release size: 5.2 kB
Release files / paynowqr-0.3.tar.gz
| Download URL | paynowqr-0.3.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55449e5b464323cba1dcac66fe26356d60ddc6f507527f326e57ef205034c25b
|
|
BLAKE2b-256 checksum How to use checksums |
6c7ab3a7544025fb5f9745a3c508d0216b0f7ff8de67b6043073908d62490637
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.1
|
Release files / PayNowQR-0.3-py3-none-any.whl
| Download URL | PayNowQR-0.3-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9485d8a8d6fd6d92f430e2ff94669af996f0b96eed334a07284e2590198e6804
|
|
BLAKE2b-256 checksum How to use checksums |
7ad1e725799d4c116424514529f477b48796916cc2cf307c59991414405882e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.1
|
Security for PayNowQR 0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.