Skip to content

Commit

Permalink
updated receipt advanced idedity show
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmet-yoti committed Jul 15, 2024
1 parent c310886 commit 9c0d163
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ public function show(Request $request, DigitalIdentityClient $client, ?LoggerInt

$logger->warning("Unknown Content Type parsing as a String");
$shareReceipt = $client->fetchShareReceipt($request->query('ReceiptID'));

$profile = $shareReceipt->getProfile();

return view('receipt', [
'fullName' => $profile->getFullName(),
'selfie' => $profile->getSelfie(),
Expand Down
13 changes: 13 additions & 0 deletions examples/digitalidentity/resources/views/partial/report.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,17 @@
</tbody>
</table>
@endforeach
@else
<table>
@foreach ($report as $key => $value)
<tr>
<td>
{{ $key }}<br/>
<pre>
{!! json_encode($value, JSON_PRETTY_PRINT) !!}
</pre>
</td>
</tr>
@endforeach
</table>
@endif
2 changes: 1 addition & 1 deletion src/Profile/UserProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ 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 9c0d163

Please sign in to comment.