Skip to main content

Hong Kong HKQR FPS Code generation for Python

Project description

hkqr python

hkqr python is a python package for generating the data for Hong Kong Faster Payment System (FPS) which is a standard by Hong Kong Interbank Clearing Limited. Detail standards is available at https://fps.hkicl.com.hk/eng/fps/merchants/qr_code.php

The hkqr python package only deals with:

  • Generating the string data of the QR Code. You are free to use any QR code libraries to generate the graphics on your chosen frontends.
  • Currently support the generation QR Code with your Merchant ID with price and reference ID.

Running hkqr in your Python program

Supposed your Merchant ID is 999999999999,
and you would like to charge an amount of 100
with reference ID QR12345:

from hkqr import HKQR
hkqr = HKQR('999999999999')
qrcode = hkqr.create_hkqr_code( 100, reference_id="QR12345")

The Merchant ID can be account number assigned by your FPS provider, phone number or e-mail.

Make sure you test your code!


Terms & Conditions

Please read these terms and conditions carefully before using hkqr python. By using this software, you agree to be bound by these terms and conditions.

Acceptance of Terms By using hkqr python, you acknowledge that you have read, understood, and agreed to be bound by these terms and conditions. If you do not agree with any part of these terms and conditions, please refrain from using the software.

No Warranty hkqr python is provided "as is," without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and non-infringement. The developer(s) of [Your Open Source Python Package] make no warranty that the software will meet your requirements or that it will be error-free, reliable, or compatible with your operating system or other software.

Limitation of Liability In no event shall the developer(s) of hkqr python be liable for any damages, including but not limited to direct, indirect, special, incidental, or consequential damages or losses arising out of the use or inability to use the software, even if advised of the possibility of such damages. You assume all risks associated with the use of [Your Open Source Python Package].

Indemnification You agree to indemnify, defend, and hold harmless the developer(s) of hkqr python from and against any claims, liabilities, damages, losses, or expenses, including attorney's fees, arising out of your use or misuse of the software or violation of these terms and conditions.

Modification and Distribution You are allowed to modify and distribute hkqr python in accordance with the applicable open source licenses, provided that you include a copy of these terms and conditions with your distribution. However, you may not use the name of the developer(s) or [Your Open Source Python Package] to endorse or promote your modified version without prior written permission.

Governing Law These terms and conditions shall be governed by and construed in accordance with the laws of Hong Kong, the United States of America and United Kingdom. Any legal action or proceeding arising out of or relating to these terms and conditions shall be exclusively brought in the courts of [Your Jurisdiction].

Entire Agreement These terms and conditions constitute the entire agreement between you and the developer(s) of hkqr python and supersede all prior or contemporaneous communications and proposals, whether oral or written, relating to the software.

By using hkqr python, you acknowledge that you have read, understood, and agreed to these terms and conditions. If you do not agree with any part of these terms and conditions, please refrain from using the software.

hkqr python is an open source project. For more information, please visit https://github.com/pulsely/hkqr


Copyright and license

The hkqr python is written by Pulsely https://www.pulsely.com/
GPL License

Copyright 2023 Pulsely

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

hkqr-0.1.0.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

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

hkqr-0.1.0-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file hkqr-0.1.0.tar.gz.

File metadata

  • Download URL: hkqr-0.1.0.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for hkqr-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4bf301dde81b9c1434030cfb18b12f01e291683a3da8a6aed101384fe628d625
MD5 900dd08236c5228508c87e8c2ef7e6a9
BLAKE2b-256 8075ed8f97a4602a0a20aa8b88f622a49ef579874c83e3c016e1d8dfedc3eb90

See more details on using hashes here.

File details

Details for the file hkqr-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: hkqr-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for hkqr-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f159d68b7059e6c74f39594eac4272a8ae55d9fcb35060cf5b23405d3280c10e
MD5 5eee861e47229726d611355f947da5fa
BLAKE2b-256 4fc12e12a23da3365827a587b1e59a4ebcf12a66be51297ca89fb217590e6b25

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