Embedded IDV

To successfully integrate Embedded IDV through Yoti's SDK, there are two prerequisites:

  • SDK ID
  • Application key pair (.PEM file)

These details can be retrieved from the application that was created in the Yoti Hub.

Install the SDK

Yoti SDKs are available for several languages through popular dependency management systems.

To install the SDK:

Javascript
Java
PHP
C#
Go
Copy

Using Yoti SDKs

The description on how to use the above endpoint from the SDK can be found here:

Please read the above for a full description and understanding, below we have provided examples on how those requests will expose the new functionality.

First, specify the required imports and create a DocScanClient using the SDK ID and the PEM file. Then, define the subject to be returned in the verification report. And set the identity profile requirements to your desired scheme. You will need to set up the SDK configuration and a session specification using the scheme requirements and the SDK config. Finally, use the DocScanClient to create a session by providing the session specification. Retrieve the Session ID and Client Session Token and utilise them to generate the iframe URL.

Node.js
Java
PHP
C#
Go
Copy

Subject Explained

FieldValueDescriptionMandatory
subjectObjectAllows to provide information on the subject.Optional
subject_idStringAllows to track the same user across multiple sessions. Should not contain any personal identifiable information.Optional

Identity Profile Requirements Explained

FieldValueDescriptionMandatory
trust_frameworkStringDefines under which trust framework this identity profile should be verified. Enum: UK_TFIDARequired
schemeObjectDefines which scheme this identity profile should satisfy. The scheme must be supported by the specified trust framework otherwise the request is considered invalid.Required
typeStringDefines which scheme this identity profile should satisfy. Enum: DBS, RTW, RTR, DBS_RTWRequired
objectiveStringDefines the objective to be achieved for the particular scheme. It must be provided for those schemes where it is mandatory. Example, this is mandatory for DBS and the possible values are: ”BASIC”, “STANDARD”, “ENHANCED”.Required

Client side view

Once you have generated the iframe URL, you can send it to the frontend for it to be rendered on the page. Please see example below:

HTML
Copy

Retrieve Results

After a session has been created, you can use the Yoti SDK to retrieve the session result (containing all the end-user's uploaded documents and associated metadata).

Result of the session

Session retrieval requires a session ID. This is generated while creating a session as demonstrated above.

Node.js
Java
PHP
C#
Go
Copy

Retrieve Media

In order to retrieve document images and document fields from the resources container we have to look for the relevant media ID inside of the id document pages.

Node.js
Java
PHP
C#
Go
Copy

Retrieve Identity Profile

Once the session has reached the state of 'Completed', identify profile can be successfully retrieved.

In case of a successful transaction, once the identity profile is received, the identity profile report JSON will be accessible. This contains the media ID which can then be used to get the full JSON response of the report.

Node.js
Java
PHP
C#
Go
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard