Skip to main content

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


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)

Uploaded Source

Built Distribution

pay_by_square-0.1.0-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

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