Skip to content

Commit

Permalink
www11
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmet-yoti committed Feb 1, 2024
1 parent 3e02888 commit 637a948
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .php-cs-fixer.cache

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions examples/profile/app/Http/Controllers/ProfileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace App\Http\Controllers;

use Illuminate\Support\Facades\Log;
use Yoti\YotiClient;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller as BaseController;
Expand All @@ -15,6 +16,8 @@ public function show(Request $request, YotiClient $client)
$activityDetails = $client->getActivityDetails($request->query('token'));
$profile = $activityDetails->getProfile();

Log::info('TEST:' . $profile->getFullName());

return view('profile', [
'fullName' => $profile->getFullName(),
'selfie' => $profile->getSelfie(),
Expand Down
2 changes: 1 addition & 1 deletion src/Profile/ActivityDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private function setTimestamp(): void
private function setProfile(): void
{
$protobufAttrList = $this->receipt->parseOtherPartyProfileContent($this->pemFile);

error_log('set profile:' . json_encode($protobufAttrList));
$this->userProfile = new UserProfile(
AttributeListConverter::convertToYotiAttributesList($protobufAttrList, $this->logger)
);
Expand Down
2 changes: 1 addition & 1 deletion src/Profile/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function getActivityDetails(string $encryptedConnectToken): ActivityDetai
$this->checkForReceipt($result);
$receipt = new Receipt($result['receipt'], $this->config->getLogger());
error_log("LOG 10=>" . json_encode($result['receipt']));

error_log("LOG 11=>" . $receipt);
//error_log("LOG5=>" . $result);
// Check response was successful
if ($receipt->getSharingOutcome() !== self::OUTCOME_SUCCESS) {
Expand Down

0 comments on commit 637a948

Please sign in to comment.