Skip to main content

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

  1. Type: Type of PayNow account. It can be either "Mobile" or "UEN".
  2. Identifier: Mobile number for personal account or UEN number for business account.
  3. Name: Name of the account holder or business.
  4. Amount: Amount to be paid.
  5. Description: Description of the payment.
  6. Expiry Date (Optional): Expiry date of the QR code. Default is None. Format is "YYYYMMDD".
  7. 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)

Source distribution for PayNowQR 0.3
File Size Uploaded
paynowqr-0.3.tar.gz 2.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PayNowQR 0.3
File Interpreter ABI Platform
PayNowQR-0.3-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.3 This release

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page