iabdelgawaad / ZATCA

ZATCA (Fatoora) QR code easily which required for e-invoicing for Android Apps on smart phones and POS devices.
17 stars 5 forks source link

What is the separation chars between the content items ? #2

Closed tamkeen-tms closed 2 years ago

tamkeen-tms commented 2 years ago

I tried to decode the "AQ1TaGF3cm1hIEhvdXNlAgoxMjM0NTY3ODkwAxMyMi8xMS8yMDIxIDAzOjAwIGFtBAMxMDAFAjE1" string, and the data shows, but is separated by a character that is not identified, what is it?!

Base64 Decode - Online Tool 12-27-2021 10-36-13 PM

Thanks

iabdelgawaad commented 2 years ago

That's the expected output for ZATCA

Check some other outputs from different platforms like Salla: https://salla.dev/blog/qr-code-fatoora-e-invoicing-zatca/

iabdelgawaad commented 2 years ago

The identified characters is the tag and length encoding: https://github.com/iabdelgawaad/ZATCA#:~:text=By%20Creating%20a%20TLV%20Byte%20Array%20for%20field%20like%20this%3A

tamkeen-tms commented 2 years ago

Ah, thanks.