Generate QR codes for by square payments
Project description
Pay by square
Generate codes for by square payments.
Installation
Note: pay-by-square
generates string that can be passes to QR code generator to create
image. To run example below, you need to install
qrcode module as well.
pip install pay-by-square
Usage
import qrcode
import pay_by_square
code = pay_by_square.generate(
amount=10,
iban='SK7283300000009111111118',
swift='FIOZSKBAXXX',
variable_symbol='47',
)
print(code)
img = qrcode.make(code)
img.show()
Testing
python -m unittest tests.py
Kudos to guys from devel.cz
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pay-by-square-0.1.0.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for pay_by_square-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6acad8203b1f10db0684921e7ce827c251e9b9bdba5d793341042e2c56d26661 |
|
MD5 | 152814b918692a3bbfdf69cb47af8acd |
|
BLAKE2b-256 | bebcd755582600bc3e93a6d1f428d2a0ffbc24239198c32a96716f9d86f23bd4 |