Skip to content

Commit

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

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions src/Profile/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ public function getActivityDetails(string $encryptedConnectToken): ActivityDetai
// Decrypt connect token
$token = $this->decryptConnectToken($encryptedConnectToken);
//error_log("Mas->" . $encryptedConnectToken);
error_log("LOG1=>" . $this->config->getApiUrl() ?? Constants::API_URL);
/* error_log("LOG1=>" . $this->config->getApiUrl() ?? Constants::API_URL);
error_log("LOG2=>" . $this->config->getApiUrl());
error_log("LOG3=>" . Constants::API_URL);

*/
$response = (new RequestBuilder($this->config))
->withBaseUrl("https://api.yoti.com/api/v1")
->withEndpoint(sprintf('/profile/%s', $token))
Expand All @@ -84,11 +84,15 @@ public function getActivityDetails(string $encryptedConnectToken): ActivityDetai
}

$result = Json::decode((string)$response->getBody());
error_log("LOG4=>" . json_encode($result));
//error_log("LOG4=>" . json_encode($result));

$this->checkForReceipt($result);
$receipt = new Receipt($result['receipt'], $this->config->getLogger());
error_log("LOG 10=>" . json_encode($result['receipt']));

error_log("LOG 11 =>" . json_encode($result['other_party_profile_content']));


//error_log("LOG 11=>" . $receipt);
//error_log("LOG5=>" . $result);
// Check response was successful
Expand Down

0 comments on commit 4ca420c

Please sign in to comment.