Usage
4Minimum Requirements
iOS 11
Installation
Download our framework through CocoaPods
Authentication
In order to generate an access token that will be used in the SDK authentication settings, use our authentication service API.
Configuration
Add the following Add the following key to the app’s info.plist file
Privacy - Camera Usage Description
Import the framework
Implement valifyDelegate
to your class
Confirm your class to the protocol
Configuring your SDK settings
Your app must support landscape orientation in order for our SDK to work properly. If you require your app views to be in portrait orientation only, you can use View-Based orientation lock in order to have your app views restricted to portrait mode.
If you use the Face Match service after the OCR or OCR w/ Verification service then the face in the front side image of the national ID captured during the OCR or OCR w/ Verification step will be used for comparison with the image captured during the Face Match step.
If you use the Face Match service separately, you need to either pass an image or a transactions id for a hit previously made to our OCR or OCR w/ Verification service for comparison with the image that will be captured for the user going through the SDK experience:
Run the SDK (must be called after viewDidAppear
has already been called, for example, in a button action)
When you implement valifyDelegate
you’ll have to add the required method of the protocol
This didFinishProcess
function will be called once the framework has finished, and it will return the session’s token and valifyResponse
object which is an enumerator of the following cases
success: the user has completed the experience successfully. The Valify token (
valifyToken
), and the data collected (valifyResult
) are returned.userExited: the user exits the SDK voluntarily returning to the main app. The Valify token (
valifyToken
), and (userExited
) object are returned to the app.error: the user aborts as a result of an error. The Valify token (
valifyToken
), (valifyError
) are returned to the app.
Demo Application
The following is a demo application that illustrates how to integrate the Valify eKYC SDK inside your application:
Last updated