-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
INVOICE_HASHING_ERRORS #50
Comments
don't sign the invoice only create hash using DOMDocument
|
Thanks for replying, also when I use the below function, after $invoiceHash = base64_encode(hash('sha256', $XML, true)); use Salla\ZATCA\Helpers\Certificate; $xmlInvoice = 'xml invoice text'; $certificate = (new Certificate( $invoice = (new InvoiceSign($xmlInvoice, $certificate))->sign(); // invoice Hash: $invoice->getHash() |
Standard invoice doesnt need signing . pass only xml and invoice hash generated by my function |
Getting below error
stdClass Object
(
[validationResults] => stdClass Object
(
[infoMessages] => Array
(
[0] => stdClass Object
(
[type] => INFO
[code] => XSD_ZATCA_VALID
[category] => XSD validation
[message] => Complied with UBL 2.1 standards in line with ZATCA specifications
[status] => PASS
)
)
The text was updated successfully, but these errors were encountered: