thaiqrpayment

Thai QR Payment Generator


Keywords
Thai, QR, Payment, Generator
License
MIT
Install
pip install thaiqrpayment==0.1.0

Documentation

thai-qr-payment

Generate QR Code image in the format of Thai QR Payment

Installation

available on pip https://pypi.org/project/thaiqrpayment/

pip install thaiqrpayment

Usage

import thaiqrpayment

# Your code from Bank
code = "01" * 100

# Save to image file
thaiqrpayment.save(code, "/tmp/qr.png")

# base64 format
base64_str = thaiqrpayment.to_base64(code)

# PIL image
pil_image = thaiqrpayment.generate(code)

Example Image

Thai QR Payment example