Implementation Guide
Authentication
A unique access token should be created upon each SDK entry. In order to generate an access token, please refer to Valify's Authentication Documentation.
Security Warning: For improved security, consider implementing the access token fetching logic outside the Activity. This helps keep sensitive credentials secure and reduces potential exposure within the Activity/Fragment code.
Initialization
Declare the following variables
Initialize your SDK in your activity or fragment as follows
Configurations
The SDK builder is separated into two components.
Make sure that you fetched the access token successfully before passing it to the Builder object.
Required Configurations
Optional Configurations
Configurations Breakdown
This section shows the breakdown of all optional builder configurations.
The following line is where the user interface language is set.
The currently supported languages are Arabic and English
The following line is optional and can be used to set your company's branding color to the SDK's user interface.
If the following line is set to true, then an error message will appear in the user interface in the case that the user did not pass the face match or the liveness service.
The integer set in the following line determines how many instructions the user will need to follow to successfully complete a single SDK experience.
The integer set in the following line determines how many failed attempts the user has during a single SDK experience.
The integer set in the following line determines how much time (in seconds) the user will be given to complete each task.
If the following line is added, the SDK will not require the user to close their eyes during the experience.
If the following line is added, the SDK will not require the user to look left during the experience.
If the following line is added, the SDK will not require the user to look right during the experience.
If the following line is added, the SDK will not require the user to smile during the experience.
If the following line is added, voice-over will be removed from the SDK experience.
If this field has an image filled, then the face match service is enabled and the image will be compared with an image captured of the user's face during the SDK experience.
If this field has the front OCR transaction ID filled, then the face match service is enabled and the referenced transaction ID will be compared with an image captured of the user's face during the SDK experience.
The following line is optional and can be used to set any headers that may be required for purposes specific to your application. Any headers set will be sent along with each API call made by the SDK.
The following line is optional and can be used to set an SSL certificate that may be required for purposes specific to your application.
Start SDK
You need first an instance of SDK's listener vidvLivenessListener Use the following code snippet to run the SDK
Last updated