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 aa38ac7 commit 2d5b3ac
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 54 deletions.
106 changes: 53 additions & 53 deletions examples/doc-scan/resources/views/success.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,59 +294,59 @@
</div>
@endif
@if (isset($sessionResult))
@if ($sessionResult->getIdentityProfile() != null)
@if ($sessionResult->getIdentityProfile()->getFailureReason() != null)
@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
@endif
@if ($sessionResult->getIdentityProfile() != null)
@if ($sessionResult->getIdentityProfile()->getFailureReason() != null)
@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
@endif
@endif
@if (count($sessionResult->getResources()->getIdDocuments()) > 0)
<div class="row pt-4">
Expand Down
1 change: 0 additions & 1 deletion src/Profile/UserProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class UserProfile extends BaseProfile
public const ATTR_DOCUMENT_IMAGES = 'document_images';
public const ATTR_STRUCTURED_POSTAL_ADDRESS = 'structured_postal_address';
public const ATTR_IDENTITY_PROFILE_REPORT = 'identity_profile_report';
public const ATTR_ADVANCED_IDENTITY_PROFILE_REPORT = 'advanced_identity_profile_report';
/** @var \Yoti\Profile\Attribute\AgeVerification[] */
private $ageVerifications;

Expand Down

0 comments on commit 2d5b3ac

Please sign in to comment.