To troubleshoot IRBM submission issues like DS320, DS322, or DS333, you need a dedicated debug view that shows all key components of your digital signature process in one place.
✅ Why this is important:
- ✅ Easily verify canonical XML structure
- ✅ Confirm all digest values and base64 encodings
- ✅ Debug signatureValue mismatches faster
✅ Suggested Debug View Blade:
<h2>IRBM Signature Debug for Invoice #{{ $invoice->invoice_no }}</h2>
<h4>Canonicalized XML (Signed)</h4>
<textarea rows="10" class="form-control" readonly>{{ $invoice->debug_signed_xml }}</textarea>
<h4>SHA256 Digest (SignedProperties)</h4>
<pre>{{ $invoice->debug_digest_signed_properties }}</pre>
<h4>SHA256 Digest (Full Invoice)</h4>
<pre>{{ $invoice->debug_digest_invoice }}</pre>
<h4>Final SignatureValue (Base64)</h4>
<pre>{{ $invoice->debug_signature_value }}</pre>
✅ Suggested Columns to Store (if using JSON):
debug_signed_xml
debug_digest_signed_properties
debug_digest_invoice
debug_signature_value
💡 Tips:
- Show
md5()
andsha256()
values together for faster comparisons - Group by block: UBLExtensions, SignedInfo, KeyInfo
- Export full debug log as .txt for sharing with IRBM support
🎉 Congrats! You’ve now implemented a robust, compliant, and developer-friendly IRBM e-Invoicing system in Laravel with audit tracking, retry logic, and QR code integration.