diff --git a/examples/digitalidentity/app/Http/Controllers/ReceiptController.php b/examples/digitalidentity/app/Http/Controllers/ReceiptController.php index 39fe75a6..275b524f 100644 --- a/examples/digitalidentity/app/Http/Controllers/ReceiptController.php +++ b/examples/digitalidentity/app/Http/Controllers/ReceiptController.php @@ -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(), diff --git a/examples/digitalidentity/resources/views/partial/report.blade.php b/examples/digitalidentity/resources/views/partial/report.blade.php index e376e5f9..e9c655f7 100644 --- a/examples/digitalidentity/resources/views/partial/report.blade.php +++ b/examples/digitalidentity/resources/views/partial/report.blade.php @@ -38,4 +38,17 @@ @endforeach +@else + + @foreach ($report as $key => $value) + + + + @endforeach +
+ {{ $key }}
+
+                        {!! json_encode($value, JSON_PRETTY_PRINT) !!}
+                    
+
@endif diff --git a/src/Profile/UserProfile.php b/src/Profile/UserProfile.php index d9ac0210..e8f7a45b 100644 --- a/src/Profile/UserProfile.php +++ b/src/Profile/UserProfile.php @@ -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;