Gerifield / mnb-qr-go

MNB QR payment go lib
MIT License
2 stars 0 forks source link

Change QR lib #7

Open Gerifield opened 1 month ago

Gerifield commented 1 month ago

Change the QR gen. lib to https://github.com/yeqown/go-qrcode Which has a broader feature support, like adding an image to the code.

Gerifield commented 1 month ago

As an option the AFR logo could be added: https://www.mnb.hu/letoltes/mnb-afr-qvik-brandbook-2024.pdf

Gerifield commented 1 month ago

The lib is needed where the encoding supports segments/variable encoding. The string content contains line feeds which do not count as alphanumeric so by default the encoding will be binary, but that results in a version 14 (a bit bigger) QR code, not the standard ver. 13 as it should be, for the max. allowed content size.

With variable/segment encoding the QR size should be smaller and should fit in the ver. 13.

Gerifield commented 1 month ago

https://github.com/piglig/go-qr/ supports segments