fix: set proper swiss qr version as expected by the guidelines

closes issue #23
master
Katja Lutz 2 years ago
parent a4bfd17251
commit 5548b47253

@ -53,7 +53,8 @@ const encodeSwissQrInvoice = (
invoiceData: InvoiceData,
{ type = "SPC" } = {}
) => {
const VERSION = "0220"; // 2.20
// This code implements version 2.2! But the guidelines require that this stays fixed as 2.0 ;)
const VERSION = "0200";
const CODING = 1; // utf-8
const LINE_BREAK = "\n";
const END_INDICATOR = "EPD";

Loading…
Cancel
Save