Skip to content

Let modules draw QR codes through the host - #17

Merged
gdarko merged 1 commit into
masterfrom
feat/qr-codes
Oct 27, 2026
Merged

gdarko merged 1 commit into
masterfrom
feat/qr-codes

Conversation

@gdarko

@gdarko gdarko commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Module API 1.6.0, for SDK 3.7.0.

  • Contracts\Host\QrCodeGenerator: svg() and svgDataUri(), sized in pixels with a quiet zone in modules.
  • Qr\ErrorCorrection: Low, Medium (default), Quartile, High.
  • Non-ASCII content is encoded as UTF-8, which EPC and Swiss QR-bill payloads need.
  • README section and compatibility table; RELEASING points at the 3.7.0 workflow.

The host side (HostQrCodeGenerator) is in InvoiceShelf/InvoiceShelf alongside invoice payment links. Tag 3.7.0 after merging so that PR can require it.

Module API 1.6.0: QrCodeGenerator returns an SVG, or the same as a data URI
for an <img> in a PDF template, so a module never bundles a QR library of its
own. ErrorCorrection names the four levels, Medium by default as the EPC and
Swiss QR-bill specifications require. Text beyond ASCII is encoded as UTF-8.
@gdarko
gdarko merged commit 9deeac5 into master Oct 27, 2026
2 checks passed
@gdarko
gdarko deleted the feat/qr-codes branch October 27, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant