ZATCA QR code library (.Net)
An unofficial package to help developers implement ZATCA (Fatoora) QR code easily which is required for e-invoicing in Saudi Arabia.
✨ You could use it in both frontend and backend .Net projects.
✅ Validated to have the same output as ZATCA's SDK as of 15 June 2022.
How to use
Call the function ZatcaQrcode.QR.GetText
and pass ZATCAQrModel
, to get qr-code text
class ZATCAQrModel
{
public string SellerName { get; set; }
public string VatNumber { get; set; }
public DateTime Date { get; set; }
public double Total { get; set; }
public double Vat { get; set; }
public string XmlInvoiceHash { get; set; }
public string Signature { get; set; }
public string PublicKey { get; set; }
public string CryptographicStamp { get; set; }
}