Skip to main content

A simple python library to generate PayNow QR codes in Singapore

Project description

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.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

paynowqr-0.2.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PayNowQR-0.2-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file paynowqr-0.2.tar.gz.

File metadata

  • Download URL: paynowqr-0.2.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for paynowqr-0.2.tar.gz
Algorithm Hash digest
SHA256 3e785d185beceb34e793b22d8f02a8aa719bb3058c2387ce6cc8ae15c43ee574
MD5 8144b8ca6b8a669d429a458d2afdcf1a
BLAKE2b-256 2804cb34a5e111a8ade64cafe415cb5c0a4dab2ab929133958d102fb25f90ce2

See more details on using hashes here.

File details

Details for the file PayNowQR-0.2-py3-none-any.whl.

File metadata

  • Download URL: PayNowQR-0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for PayNowQR-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cee10fa202bdaf1c05be2438871fc1b224db706aea6be8509a07cd00fdd0ec6f
MD5 71db4952718d9e22996ad3c328069b24
BLAKE2b-256 cf5c75fbd75982a781d0cbb46278a1987b69a225f68d1ec2d0d691867c951213

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page