All Projects β†’ manuelbl β†’ Swissqrbill

manuelbl / Swissqrbill

Licence: mit
Java library for Swiss QR bill payment slips (aka QR-Rechnung)

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Swissqrbill

Manta
πŸŽ‰ Flexible invoicing desktop app with beautiful & customizable templates.
Stars: ✭ 5,160 (+9455.56%)
Mutual labels:  invoice
Url To Pdf Api
Web page PDF/PNG rendering done right. Self-hosted service for rendering receipts, invoices, or any content.
Stars: ✭ 6,544 (+12018.52%)
Mutual labels:  invoice
Qrcode
QR-code encoder/decoder (no image recognition)
Stars: ✭ 34 (-37.04%)
Mutual labels:  qr-code
Invoice printer
Super simple PDF invoicing
Stars: ✭ 644 (+1092.59%)
Mutual labels:  invoice
React Qr Reader
React component for reading QR codes from webcam.
Stars: ✭ 716 (+1225.93%)
Mutual labels:  qr-code
Flutter Client
Invoice Ninja client built with Flutter
Stars: ✭ 900 (+1566.67%)
Mutual labels:  invoice
React Native Vision Camera
πŸ“Έ The Camera library that sees the vision.
Stars: ✭ 443 (+720.37%)
Mutual labels:  qr-code
Ngx Kjua
Angular QR-Code generator component using kjua.
Stars: ✭ 51 (-5.56%)
Mutual labels:  qr-code
Vue Qrcode
QR code component for Vue.js
Stars: ✭ 724 (+1240.74%)
Mutual labels:  qr-code
Simple Html Invoice Template
A modern, clean, and very simple responsive HTML invoice template
Stars: ✭ 963 (+1683.33%)
Mutual labels:  invoice
Invoiceninja
Invoices, Expenses and Tasks built with Laravel and Flutter
Stars: ✭ 6,247 (+11468.52%)
Mutual labels:  invoice
Zxing
ZXing ("Zebra Crossing") barcode scanning library for Java, Android
Stars: ✭ 28,795 (+53224.07%)
Mutual labels:  qr-code
Php Sdicoop Client
A PHP package for connecting to Italian Exchange System (aka SdI) web services. (Pacchetto PHP per inviare fatture e notifiche ai webservices del SdI).
Stars: ✭ 14 (-74.07%)
Mutual labels:  invoice
Receipt Parser Legacy
A supermarket receipt parser written in Python using tesseract OCR
Stars: ✭ 614 (+1037.04%)
Mutual labels:  invoice
Qr Code Scanner
πŸ“  A simple, fast and useful progressive web application
Stars: ✭ 982 (+1718.52%)
Mutual labels:  qr-code
Code Scanner
Code scanner library for Android, based on ZXing
Stars: ✭ 543 (+905.56%)
Mutual labels:  qr-code
Moyasar Php
Moyasar PHP client library
Stars: ✭ 5 (-90.74%)
Mutual labels:  invoice
Php E Invoice It
A PHP package for managing italian e-invoice and notice XML formats. (Pacchetto PHP per gestire il formato XML di fatture e notifiche come richiesto dal SdI).
Stars: ✭ 53 (-1.85%)
Mutual labels:  invoice
Offline invoicing
Desktop invoicing app built with electron. Create Quotes and Invoices. Download PDF or Email directly to your customers.
Stars: ✭ 47 (-12.96%)
Mutual labels:  invoice
Privatekeyvault
Make Instructions: Airgapped raspberry pi computer for working with blockchains featuring LUKS full disk encryption and using qr-codes to pass encrypted files and offline transaction instructions across the airgap.
Stars: ✭ 29 (-46.3%)
Mutual labels:  qr-code

Swiss QR Bill for Java

Open-source Java library to generate and decode Swiss QR bills (jointly developed with the .NET version).

Try it yourself and create a QR bill. The code for this demonstration (Angular UI and RESTful service) can be found on GitHub as well.

This library implements version 2.1 of the Swiss Implementation Guidelines QR-bill valid since September 30, 2019, the Style guide released in January 2019 and Swico Syntax Definition (S1) from November 11, 2018.

Introduction

The Swiss QR bill is the new QR code based payment format that will replace the current payment slip starting on 30 June, 2020. The new payment slip will in most cases be sent electronically. But it can still be printed at the bottom of an invoice or added to the invoice on a separate sheet. The payer scans the QR code with his/her mobile banking app to initiate the payment. The payment just needs to be confirmed.

If the invoicing party adds structured bill information (VAT rates, payment conditions etc.) to the QR bill, the payer can automate booking in accounts payable. The invoicing party can also automate the accounts receivable processing as the payment includes all relevant data including a reference number. The Swiss QR bill is convenient for the payer and payee.

QR Bill

More examples can be found in the Wiki

Features

The Swiss QR bill library:

  • generates PDF, SVG and PNG files
  • adds QR bill to existing PDF file
  • generates payment slip (105mm by 210mm), A4 sheets or QR code only
  • is multilingual: German, French, Italian, English
  • validates the invoice data and provides detailed validation information
  • adds or retrieves structured bill information (according to Swico S1)
  • parses the invoice data embedded in the QR code
  • is easy to use (see example below)
  • is small and fast
  • is free – even for commecial use (MIT License)
  • has only two dependencies (PDFBox and Nayuki's QR code generator)
  • is available on Maven Central

Getting started

The QR bill generator is available at Maven Central. To use it, just add it to your Maven or Gradle project.

If you are using Maven, add the below dependency to your pom.xml:

<dependency>
    <groupId>net.codecrete.qrbill</groupId>
    <artifactId>qrbill-generator</artifactId>
    <version>[2.5.0,)</version>
</dependency>

If you are using Gradle, add the below dependency to your build.gradle file:

compile group: 'net.codecrete.qrbill', name: 'qrbill-generator', version: '2.5.0+'

To generate a QR bill, you first fill in the Bill data structure and then call QRBill.generate:

package net.codecrete.qrbill.examples;

import net.codecrete.qrbill.generator.Address;
import net.codecrete.qrbill.generator.Bill;
import net.codecrete.qrbill.generator.QRBill;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;

public class QRBillExample {

    public static void main(String[] args) {

        // Setup bill
        Bill bill = new Bill();
        bill.setAccount("CH4431999123000889012");
        bill.setAmountFromDouble(199.95);
        bill.setCurrency("CHF");

        // Set creditor
        Address creditor = new Address();
        creditor.setName("Robert Schneider AG");
        creditor.setAddressLine1("Rue du Lac 1268/2/22");
        creditor.setAddressLine2("2501 Biel");
        creditor.setCountryCode("CH");
        bill.setCreditor(creditor);

        // more bill data
        bill.setReference("210000000003139471430009017");
        bill.setUnstructuredMessage("Abonnement fΓΌr 2020");

        // Set debtor
        Address debtor = new Address();
        debtor.setName("Pia-Maria Rutschmann-Schnyder");
        debtor.setAddressLine1("Grosse Marktgasse 28");
        debtor.setAddressLine2("9400 Rorschach");
        debtor.setCountryCode("CH");
        bill.setDebtor(debtor);

        // Generate QR bill
        byte[] svg = QRBill.generate(bill);

        // Save QR bill
        Path path = Paths.get("qrbill.svg");
        try {
            Files.write(path, svg);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }

        System.out.println("QR bill saved at " + path.toAbsolutePath());
    }
}

API Documention

See Javadoc API Documentation.

More information

More information can be found in the Wiki. It's the joint Wiki for the .NET and the Java version.

QR Code

For the generation of the QR code itself, Nayuki's QR code generator is used.

Other programming languages

A .NET version of this library is also available. If you are looking for a library for yet another programming language or for a library with professional services, you might want to check out Services & Tools on MoneyToday.ch.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].