From 5548b4725302771c5378da2162351689c97927c0 Mon Sep 17 00:00:00 2001 From: Katja Lutz Date: Wed, 14 Sep 2022 18:12:55 +0200 Subject: [PATCH] fix: set proper swiss qr version as expected by the guidelines closes issue #23 --- src/components/SwissInvoice.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/SwissInvoice.tsx b/src/components/SwissInvoice.tsx index d8fc5dd..78e59f0 100644 --- a/src/components/SwissInvoice.tsx +++ b/src/components/SwissInvoice.tsx @@ -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";