Skip to content

Commit

Permalink
updated changes for failure details
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmet-yoti committed Jul 25, 2024
1 parent 1602ce2 commit 5f9c5f7
Showing 1 changed file with 51 additions and 1 deletion.
52 changes: 51 additions & 1 deletion examples/doc-scan/resources/views/success.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,57 @@
</div>
</div>
@endif

@if ($sessionResult->getIdentityProfile())
@if ($sessionResult->getIdentityProfile()->getFailureReason()->getReasonCode())
<div class="row pt-4">
<div class="col">
<h2>Identity Result Error</h2>
</div>
</div>
@if ($sessionResult->getIdentityProfile()->getFailureReason()->getReasonCode())
<table class="table table-striped table-light">
<tbody>
<tr>
<td>Reason Code</td>
<td>
{{$sessionResult->getIdentityProfile()->getFailureReason()->getReasonCode()}}
</td>
</tr>
<tr>
<td>Failure Type</td>
<td>
{{$sessionResult->getIdentityProfile()->getFailureReason()->getRequirementNotMetDetails()->getFailureType()}}
</td>
</tr>
<tr>
<td>Details</td>
<td>
{{$sessionResult->getIdentityProfile()->getFailureReason()->getRequirementNotMetDetails()->getDetails()}}
</td>
</tr>
<tr>
<td>Audit Id</td>
<td>
{{$sessionResult->getIdentityProfile()->getFailureReason()->getRequirementNotMetDetails()->getAuditId()}}
</td>
</tr>
<tr>
<td>Country ISO Code</td>
<td>
{{$sessionResult->getIdentityProfile()->getFailureReason()->getRequirementNotMetDetails()->getDocumentCountryIsoCode()}}
</td>
</tr>
<tr>
<td>Document Type</td>
<td>
{{$sessionResult->getIdentityProfile()->getFailureReason()->getRequirementNotMetDetails()->getDocumentType()}}
</td>
</tr>
</tbody>
</table>
@endif
@endif
@endif
@if (count($sessionResult->getResources()->getIdDocuments()) > 0)
<div class="row pt-4">
<div class="col">
Expand Down

0 comments on commit 5f9c5f7

Please sign in to comment.