Skip to content

Releases: getyoti/yoti-php-sdk

4.3.1

12 Sep 08:53
9f9b977
Compare
Choose a tag to compare

Fixed

  • Fix for psr/http-message version error on php 8

Release/4.3.0 (#364)

01 Aug 09:36
f752956
Compare
Choose a tag to compare

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

21 Feb 14:08
c9a2b35
Compare
Choose a tag to compare

Fixed

  • ActivityDetails getProfile() function retrieves empty User profile
  • DBS Check example get error when showing user profile

4.2.1

19 Jul 06:27
4401a3d
Compare
Choose a tag to compare

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

03 Feb 20:36
102de43
Compare
Choose a tag to compare
  • 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

01 Nov 11:12
aa8cd8e
Compare
Choose a tag to compare
  • 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

01 Nov 11:14
Compare
Choose a tag to compare
  • was fixed bug with getSource() in ResourceResponse

Release 4.0.0

07 Jun 14:29
73e716e
Compare
Choose a tag to compare

Profile

Added

  • withIdentityProfileRequirements() to DynamicPolicyBuilder to specify Identity Profile Requirements:
        $identityProfileSample = (object)[
            'trust_framework' => 'UK_TFIDA',
            'scheme' => [
                'type' => 'DBS',
                'objective' => 'STANDARD'
            ]
        ];
       
        $dynamicPolicy = (new DynamicPolicyBuilder())
            ->withIdentityProfileRequirements($identityProfileSample)
            ->build();
  • withSubject() to DynamicScenarioBuilder to specify subject_id when used with withIdentityProfileRequirements():
        $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() and withSubject() on SessionSpecificationBuilder:
        $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

18 Mar 18:21
Compare
Choose a tag to compare

Fix for WatchlistAdvancedCACheck

3.9.0

18 Feb 20:22
Compare
Choose a tag to compare

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