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
If the following line is set to true, an extra layer of validations is added to the SDK response.
If the following line is set to true, any validation exceptions raised on extracted NID data will be returned in the ServiceFailure instance.
If the following line is set to true, a screen is added to the user flow that displays the images captured and the OCR result to the user.
If the following line is set to true, the captured image will be displayed for the user.
If the following line is set to true, the SDK will automatically enable manual capture if it detects that the user is unable to autocapture card.
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.
If the following line is set to true, the SDK purely performs image capturing and only returns these images in the SDK response.
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, an extra layer of data amd visual validations is added to the SDK response.
If the following line is set to true then additional checks are made for NID fraud detection and the results are returned in the response.
If the followning line is set to true then you need to enable the location permission to your application in order to use collect user info option
add these lines to your app manifest
then add request location permission before calling SDK builder and make sure the permission is granted
SDK Event Logs
The following listener can be used to receive event logs from the SDK experience to be used for user behavior analysis.
Start The SDK
You need first an instance of SDK's listener vidvOcrListener Use the following code snippet to run the SDK
Last updated