Releases: getyoti/yoti-php-sdk
Releases · getyoti/yoti-php-sdk
4.2.2
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
3.8.0
3.7.0
Changes
Added
- Ability to create Face Capture resources, and upload images to created resources
- Ability to fetch session configuration
- Flag for enabling/disabling mobile handoff
- Ability to request an Issuing Authority sub-check for a Document Authenticity check
- Ability to set the session deadline using a ZonedDateTime
- This is instead of using the current client session token expiry (set in seconds)
- Support for WATCHLIST_ADVANCED_CA check in Doc Scan
- Support for WATCHLIST_SCREENING check in Doc Scan