CzechQrPayments 1.1.0

dotnet add package CzechQrPayments --version 1.1.0
                    
NuGet\Install-Package CzechQrPayments -Version 1.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CzechQrPayments" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CzechQrPayments" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="CzechQrPayments" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CzechQrPayments --version 1.1.0
                    
#r "nuget: CzechQrPayments, 1.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CzechQrPayments@1.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CzechQrPayments&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=CzechQrPayments&version=1.1.0
                    
Install as a Cake Tool

Czech QR Payments

A .NET library for parsing Czech payment order data, typically found in QR codes on invoices and payment slips.

This library does not handle QR code scanning or image recognition - it focuses solely on interpreting the payment order string extracted from the QR code.

Implementation follows the Czech Banking Association’s “Format for Sharing Payment Data in CZK – QR Codes” specification (version 1.2, 2021-06-01). See https://www.cbaonline.cz/clanky/format-pro-sdileni-platebnich-udaju-v-czk-qr-kody.

Supported .NET Versions

Architecture MacOS Linux Windows
.NET 9 ARM
.NET 9 x64

Installation

Install the NuGet package:

dotnet add package CzechQrPayments

Usage

Parsing Payment QR Codes (SPAYD)

using CzechQrPayments;

var qrCode = "SPD*1.0*ACC:CZ3301000000000002970297*AM:1000*CC:CZK*RF:1234*X-VS:456*PT:IP";
var spd = ShortPaymentDescriptor.Parse(qrCode);

Console.WriteLine(spd.Counterparty.Iban);  // CZ3301000000000002970297
Console.WriteLine(spd.Amount);             // 1000
Console.WriteLine(spd.Currency);           // CZK

Converting IBAN to Czech Bank Account

var iban = "CZ6508000000192000145399";
var bankAccount = CzechBankAccount.FromIban(iban);

Console.WriteLine(bankAccount)  // 19-2000145399/0800

Limitations

  • CRC32 checksum – The specification defines an optional CRC32 checksum, but this library does not implement it. I have not found any real-world examples using it, and QR codes already include error-correcting mechanisms.

  • Direct debit (“inkaso”) – Not currently supported. Some partial implementation exists, but it has not been tested and is therefore disabled.

  • Bank-specific differences – Each Czech bank may have slight deviations from the specification, so interoperability is not guaranteed.

Release Notes

  • Version 1.1.0 - Added CzechBankAccount with an IBAN parsing feature. Both IBAN and Czech bank accounts contain checksums that the library doesn't validate so far.
  • Version 1.0.2 - The first version.

Contributing

Contributions are welcome!

Please open an issue to discuss potential changes or submit a pull request.

License

MIT

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net9.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0 126 8/16/2025
1.0.2 128 8/9/2025
1.0.1 127 8/9/2025
1.0.0 132 8/9/2025