Releases: getyoti/yoti-php-sdk
Releases · getyoti/yoti-php-sdk
4.3.1
Release/4.3.0 (#364)
Added Digital Identity (Share V2)
$policy = (new PolicyBuilder())
->withFamilyName()
->withGivenNames()
->withFullName()
->withDateOfBirth()
->withGender()
->withNationality()
->withPhoneNumber()
->withSelfie()
->withEmail()
->withDocumentDetails()
->withDocumentImages()
->build();
$redirectUri = 'https://www.yoti.com/redirect/';
$shareSessionRequest = (new ShareSessionRequestBuilder())
->withPolicy($policy)
->withRedirectUri($redirectUri)
->build();
$session = $client->createShareSession($shareSessionRequest);
Added Import token support to IDV
Added Failure receipt error details
Added Failure reason info to IDV Get session results
Fixed Psr Log Library require in dev environment
4.2.2
Fixed
- ActivityDetails getProfile() function retrieves empty User profile
- DBS Check example get error when showing user profile
4.2.1
Added
- Updated session config to configure consent screen location
Requested with
->withSdkConfig(
(new SdkConfigBuilder())
->withAllowsCameraAndUpload()
->withPrimaryColour('#2d9fff')
->withSecondaryColour('#FFFFFF')
->withFontColour('#FFFFFF')
->withLocale('en-GB')
->withPresetIssuingCountry('GBR')
->withSuccessUrl(config('app.url') . '/success')
->withErrorUrl(config('app.url') . '/error')
->withPrivacyPolicyUrl(config('app.url') . '/privacy-policy')
->withBiometricConsentFlow('EARLY')
->build()
)
Added
- Support for show enable expanded document fields media
Requested with
->withRequestedTask(
(new RequestedTextExtractionTaskBuilder())
->withManualCheckAlways()
->withChipDataDesired()
->withCreateExpandedDocumentFields(true)
->build()
)
Fixed
- Fixed a bug that occurs when retrieving advanced checks
Release 4.2.0
- was added support to fetch the identity profile preview
withCreateIdentityProfilePreview()
- was added support for requesting the profile preview
getIdentityProfilePreview()
- renamed retries as attempts
withIdDocumentTextExtractionGenericRetries() -> withIdDocumentTextExtractionGenericAttempts()
- was added method to request client session completed notification
forClientSessionCompletion()
- was updated symfony/phpunit-bridge from ^5.1 to ^6.2
- small fixes for Logger type hinting
Release 4.1.0
- Was added support for a static liveness check
- Was added support for allowing the Relying Business to enable/disable the use of expired documents
(new OrthogonalRestrictionsFilterBuilder())
-> withAllowExpiredDocuments() // enable
->withDenyExpiredDocuments() // disable
->build();
- Was added support for a face comparison check
- Was fixed bug with 'uploadFaceCaptureImage' function
- Support only for php7.4.* + php 8.0.* + php8.1.* version
- Was updated guzzle http/guzzle to ^7.0 version
- Was updated guzzle http/psr7 to ^2.4 version
- Was removed php7.1 support
Release 3.9.2
- was fixed bug with
getSource()
inResourceResponse
Release 4.0.0
Profile
Added
withIdentityProfileRequirements()
toDynamicPolicyBuilder
to specify Identity Profile Requirements:
$identityProfileSample = (object)[
'trust_framework' => 'UK_TFIDA',
'scheme' => [
'type' => 'DBS',
'objective' => 'STANDARD'
]
];
$dynamicPolicy = (new DynamicPolicyBuilder())
->withIdentityProfileRequirements($identityProfileSample)
->build();
withSubject()
toDynamicScenarioBuilder
to specifysubject_id
when used withwithIdentityProfileRequirements()
:
$subjectSample = (object)[
'subject_id' => 'SOME_STRING'
];
$dynamicScenario = (new DynamicScenarioBuilder())
->withPolicy($somePolicy)
->withSubject($subjectSample)
->build();
- Identity Profile Report attribute (JSON):
public function getIdentityProfileReport()
{
return $this->identityProfileReport;
}
getId()
to Yoti attribute:
public function getId(): ?string
{
return $this->id;
}
getAttributeById()
to Yoti profile:
$selfie = $yotiProfile->getAttributeById(self::SOME_ID_1));
$documentImages = $yotiProfile->getAttributeById(self::SOME_ID_2));
IDV
Added
- Ability to specify Identity Profile Requirements and subject_id using
withIdentityProfileRequirements()
andwithSubject()
onSessionSpecificationBuilder
:
$sessionSpecification = (new SessionSpecificationBuilder())
->withIdentityProfileRequirements((object)[
'trust_framework' => 'UK_TFIDA',
'scheme' => [
'type' => 'DBS',
'objective' => 'STANDARD'
])
->withSubject((object)[1 => 'some'];)
->build();
- IdentityProfile to IDV GetSessionResult:
IdentityProfileResponse $identityProfile = $sessionResult->getIdentityProfile();
string $subjectId = $sessionResult->getIdentityProfile()->getSubjectId();
string $result = $sessionResult->getIdentityProfile()->getResult());
string $failureReasonCode = $sessionResult->getIdentityProfile()->getFailureReason()->getStringCode();
MediaID can be retrieved with:
string $mediaId = $sessionResult->getIdentityProfile()->getIdentityProfileReport()["media"]["id"]
and used to retrieve the full identity profile report as JSON with a separate call:
Media $media = $docScanClient->getMediaContent("your-session-id", $mediaId);
3.9.1
3.9.0
Changes
Added
- Ability to request a session be performed In-Branch (IBV)
- Support for managing instructions flow as Relying Business for IBV
- Setting the instructions
- Retrieving currently set instructions
- Fetching the contact profile set by the end user
- Retrieving the generated instructions PDF
- Triggering the email notification
- Support for non-latin documents when creating a session using DOCUMENT_RESTRICTIONS
- Updated phpseclib from 2.0 to 3.0