mrsool / zatca

An unofficial Ruby library for generating ZATCA e-invoices, QR Codes, and submitting e-invoices to ZATCA's servers.
MIT License
36 stars 12 forks source link

Phase 2 Support #15

Closed obahareth closed 7 months ago

obahareth commented 1 year ago

Support for #11 and #8.

Update Wiki with

For a future PR

obahareth commented 1 year ago

The latest SDK ZATCA shared with me has no samples that pass their own CLI or web validators, I just want to make sure I get a passing result before I merge this.

Otherwise the XML is structurally sound (validated by them and PWC in a call), the signing is correct, the new QR code is correct, etc.

I just want to get a passing validation from their SDK.

obahareth commented 1 year ago

So far results are very good. All the XML generated by the SDK is passing in terms of structure, there's just one error in the signature that's causing an issue.

I am in daily contact with ZATCA to get it resolved.

Once that's done we're good to go. In a future PR I will probably add helpers to help construct invoice type codes, payment means, etc.

obahareth commented 8 months ago

Good news, this is passing ZATCA's compliance checks. I'm just doing some final updates to the wiki and verifications and will be merging this in the coming weeks.