Can any body help to genrate QR code for Phase 2 for iOS POS System
Dear @neeraj
Thanks for reaching out, Welcome to our community.
Can I kindly ask you to elaborate more with your concerns and answer the below questions to ensure comprehensive support as usual:
1- Did you review the Educational Library shared by ZATCA?
2- Are you using Java, or .NET?
3- Are you using our SDK tool?
4- Did you start with the onboarding process? If yes, in which environment?
Thanks,
Ibrahem Daoud.
1.Yes I have Review Educational Library
2. i am using Swift for iOS development
3.i don’t find SDK which is used in Swift
for Phase 1 i have used SDK in Swift .Can you Please confirm that any SDK provided by you for Swift (iOS development ) and how i will communicate to generate Qr Code When my iPad Dont have any Internet Connection because i need to show Qr Code on Customer Receipt.
Hello All,
Any Update regarding this ?
Hello Ibrahem Daoud,
Hope you are doing well.
I have generated 1 Qr Code. Can you Please help me out that this QR code is Ok with Phase 2 because Zatca App say is Ok but QRKSAReader App is says its not Compatible with Phase So i am little bit Confused that Which App is give Correct and Qr Code is correct or not that our client not facing any issue.Please help me as soon as possible
Qr Code is in Attachment
Thanks and Best Regards
Neeraj pal
(attachments)
The QR Code is not Compatible with ZATCA
Base64 of Your QR Code
AQx0YXgtcmVnLW5hbWUCDzMwMjIyMTYzNTIwMDAwMwMUMjAyNC0wOS0yNlQxNjo0NjoyOVoEBjUwMC4wMAUFNjUuMjIGOnRheC1yZWctbmFtZTMwMjIyMTYzNTIwMDAwMzIwMjQtMDktMjZUMTY6NDY6MjlaNTAwLjAwNjUuMjIHWEFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBPT0=
when decoding its Where you can see some missing information like Invoice Hash and Key etc.
tax-reg-name3022216352000032024-09-26T16:46:29Z500.0065.22:tax-reg-name3022216352000032024-09-26T16:46:29Z500.0065.22aXAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==
You can check this QR Code
Can You Help me out here that how i generate
Can you please share your code with XML
Can You please tell me that
func generatePublicKey(from privateKeyData: Data) → Data? {
// Create the private key from raw data
guard let privateKey = try? P256.Signing.PrivateKey(rawRepresentation: privateKeyData) else {
print(“Invalid private key data.”)
return nil
}
// Derive the public key
let publicKey = privateKey.publicKey
// Convert the public key to Data format
return publicKey.rawRepresentation
}
this Code i have Used to genrate Public and Private Key for Ios and After that it will Work
or private and Public Key we need to genrate from Zatca Website and then used in Our app and it will remain same for All Invoice or changed
-
Seller’s name
-
VAT registration number of the seller
-
Timestamp of the electronic invoice or credit/debit note (date and time)
4 Electronic invoice or credit/debit note total (with VAT)
-
VAT total
-
Hash of XML electronic invoice or credit/debit note
Cryptographic stamps generated by ZATCA’s platform for integrated tax invoices and associated credit/debit notes -
Cryptographic stamp generated by the taxpayer’s e-Invoice generating solution
-
The public key of the ZATCA platform, which is used to generate the cryptographic stamp
-
The public key of the e-invoice generating solution, which is used to generate the cryptographic stamp (ECDSA)
Complete Documentation
QR Code Creation
(https://zatca.gov.sa/ar/E-Invoicing/SystemsDevelopers/Documents/QRCodeCreation.pdf)
Thanks Brother its Help me a lot.
Dear @neeraj
Thank you for reaching out and welcome to our community.
Kindly find attached the QR Code documentation on page 58, containing all of the fields and tags & all of the necessary information to create the QR code.
Thank you.
E-invoicing-Detailed-Technical-Guideline.pdf (3.8 MB)
Dear @neeraj
Yes, it is compatible.
Thank you For your valuable time and response