This project will help you generate a QR code for a payment request making use of http://scan2pay.info
Scan one of the following QR Codes to see the result.
It will open your banking app and request you to pay.
- Create a payment request.
- Check if all the information is correct
- Generate the QR code.
pr = payment.PaymentRequest()
pr.amount = 0.1
pr.billerName = "Oele Geirnaert"
pr.iban = "BE24651151080738"
pr.remittanceInfo = "Python Payment - Thank you for your contribution"
if pr.is_valid():
generated_qr_image_with_branding = pr.generate_qr_code(custom_filename = "qr_with_branding", crop = False)
img = Image.open(generated_qr_image_with_branding)
img.show()
generated_qr_image_without_branding = pr.generate_qr_code(custom_filename = "qr_without_branding", crop = True)
img = Image.open(generated_qr_image_without_branding)
img.show()
You need to install the following modules: Pillow & Schwifty:
pip install Pillow
pip install schwifty
- Oele Geirnaert - Initial work - (https://github.com/oelegeirnaert)
See also the list of contributors who participated in this project.
This project is free to use!