How to create a Swiss QR bill in .NET application

2020-05-19

Recently many countries digitize payments. In other words, they convert existing payments to digital format. The most common way to automate payments is to use QR codes that are easily read by smartphones. The ability to encode a sufficiently large amount of information, high damage resistance, no need in special equipment to read – these are the main advantages of the QR code that made it popular all over the world.

Swiss authorities also decided to use QR codes to secure electronic payments. This means that all payment receipts and bills will have these codes.

In this regard, Swiss QR code support appeared in the FastReport.Net report generator and although Swiss QR is just a kind of QR code, it is used in a specific form of Swiss bill. It is quite simple and contains information about: payee, payer, invoice, payment link and amount.

Let’s create a report template for a Swiss QR bill.

Swiss QR-bill form creation

Here we added a regular QR code. Double click on it to turn it into a Swiss QR.

Select swiss item in the dropdown list of Barcode Editor

Select Swiss from the dropdown menu at the top to enable the form which will allow us to fill in the building code parameters. All parameters strictly correspond to the Swiss QR code standard.  

Swiss code options

Let’s consider the parameters in more detail:

IBAN

In Switzerland, the IBAN (International Bank Account Number) standard is used to represent a bank account number. From the name it is clear that this standard is international and it is registered in ISO with number 13616.

Here you can choose one of the two IBAN types: IBAN or QR-IBAN.

QR-IBAN should be used for payments with a structured QR reference. At the same time, QR-IBAN also corresponds to rules stipulated in the ISO 13616 standard. Each legally independent financial institution participating in the scheme is assigned its identifier in the range of 30000-31999. This identifier is called QR-IID and it is contained in QR-IBAN.

Creditor

Fill in the data of the invoice issuer. Name of organization and address.

Reference

Link to the payment needed by payee.

Type:

  • QRR - QR link: Swiss standard link 26 characters long (numbers only);

  • SCOR - Lender Link: international standard from 5 to 25 characters long;

  • NON - the link may be empty.

Text type:

  • QR-Reference - used with the QRR link type;

  • ISO 13616 - used with the SCOR link type.

The QR link is a replacement for the currently used ISR link. It helps to change over to QR bills from previously used red and orange receipts.

Debitor:

Here it is necessary to fill in the payer’s information: full name or name of organization and address.

Additional Information:

The invoice issuer may enter any additional structured/unstructured information for the payer.

Currency:

Since this is the Swiss payments system, you can choose between two types of currencies: EUR and Swiss francs (CHF).

Alternative Procedure 1 and 2:

It is expected that in the future invoices may offer other alternative procedures in addition to bank transfers. There are two fields for this in Swiss QR.

Amount:

Here you need to specify the payment amount with a comma separator.

Close the code editing form. If all the data is filled in correctly, then no warning messages will follow and the QR code will change. Now a Swiss cross appeared in its center.

Swiss QR-bill report template result

Turn off text display below the code in the properties of the Barcode object – ShowText = false.

Fill in the values of the receipt fields and get the finished Swiss QR bill:

Swiss QR-bill created by FastReport.Net

Now you can easily create a Swiss QR bill in FastReport.

9. November 2023

Bericht in C# in FastReport Cloud erstellen

In diesem Artikel zeigen wir Ihnen anhand eines Beispiels, wie Sie mit FastReport Cloud SDK Berichte erstellen und in ein beliebiges Format exportieren können.
22. März 2023

Erstellen eines PDF-Berichts in JetBrains Rider (C#) unter Ubuntu 22.04.1 LTS

In diesem Artikel werfen wir einen Blick auf die Welt der .NET-Plattform in Ubuntu 22.04.1 LTS, und erstellen einen Bericht, der ins PDF-Format exportiert werden kann.
19. Dezember 2022

Erstellen von PDF-Berichten in JetBrains Rider (C#) unter Windows 11

In diesem Artikel werfen wir einen Blick auf .NET in Windows 11, ohne Microsoft Visual Studio zu verwenden, und exportieren den Bericht in das PDF-Format.
Fast Reports
  • 800-985-8986 (Englisch, die USA)
  • +4930568373928 (Deutsch)
  • +55 19 98147-8148 (Portugiesisch)
  • info@fast-report.com
  • 66 Canal Center Plaza, Ste 505, Alexandria, VA 22314

© 1998-2024 Fast Reports Inc.