MAES.Fiskal 1.1.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package MAES.Fiskal --version 1.1.1
                    
NuGet\Install-Package MAES.Fiskal -Version 1.1.1
                    
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="MAES.Fiskal" Version="1.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MAES.Fiskal" Version="1.1.1" />
                    
Directory.Packages.props
<PackageReference Include="MAES.Fiskal" />
                    
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 MAES.Fiskal --version 1.1.1
                    
#r "nuget: MAES.Fiskal, 1.1.1"
                    
#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 MAES.Fiskal@1.1.1
                    
#: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=MAES.Fiskal&version=1.1.1
                    
Install as a Cake Addin
#tool nuget:?package=MAES.Fiskal&version=1.1.1
                    
Install as a Cake Tool

MAES.Fiskal

Contributors Forks Stars Issues License LinkedIn

MAES.Fiskal is a fiscalization tool for invoices developed in C# using .NET 8. It enables automatic generation and submission of fiscal data according to current regulations.

Features

  • ZKI Generation
  • Invoice fiscalization
  • Tip fiscalization
  • Free and open source

Installation

Nuget: https://www.nuget.org/packages/MAES.Fiskal

or

git clone https://github.com/MAES-Software/MAES.Fiskal.git

Prerequirements

Load X509Certificate2

  1. From file (You can use relative path eg. "./cert.p12")
    var certificate = new X509Certificate2("filename");
    
  2. From some data stream with byte[] bytes
    var certificate = new X509Certificate2(bytes);
    

You must also supply password for given certificate if it has one (by default certificates given from goverment are locked but they can be repackaged)

var certificate = new X509Certificate2("filename", "password");

Usage Example

Define using MAES.Fiskal to get all classes for fiscalization

using MAES.Fiskal;

Create an invoice

var invoice = new RacunType
{
    // Fill invoice properties here
};

Create an invoiceTipType from invoiceType

RacunNapojnicaType invoiceTip = invoice.ToInvoiceTipAsnyc(new ()
{
    // Fill tip properties here
});

Send invoice

Fiscalization.SendInvoiceAsync(invoice, certificate);

Send invoiceTip

Fiscalization.SendInvoiceAsync(invoiceTip, certificate);

Generate ZKI

string zki = invoice.ZKI(certificate);

Both invoice and invoiceTip have .ZKI(certificate) methods

If you encounter issues with SSL certificate validation, you can disable certificate checks as follows:

Fiscalization.SslCertificateAuthentication = new()
{
    CertificateValidationMode = X509CertificateValidationMode.None,
    RevocationMode = X509RevocationMode.NoCheck
};

Warning: Disabling SSL certificate validation is not recommended for production environments, as it reduces security and exposes your application to potential risks. Use this option only for testing or troubleshooting purposes.

License

<a href="https://github.com/MAES-Software/MAES.Fiskal">MAES.Fiskal</a> © 2025 by <a href="https://github.com/ImaJosBuggova">Roko Tomović</a> is licensed under <a href="https://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International</a><img src="https://mirrors.creativecommons.org/presskit/icons/cc.svg" alt="" style="max-width: 1em;max-height:1em;margin-left: .2em;"><img src="https://mirrors.creativecommons.org/presskit/icons/by.svg" alt="" style="max-width: 1em;max-height:1em;margin-left: .2em;"><img src="https://mirrors.creativecommons.org/presskit/icons/sa.svg" alt="" style="max-width: 1em;max-height:1em;margin-left: .2em;">

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  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.

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.3 133 9/8/2025
1.1.2 172 8/30/2025
1.1.1 161 8/30/2025
1.1.0 165 8/30/2025
1.0.0 146 8/14/2025