Skip to main content

Veritran Docs

Veridas Selfie

The Veridas Selfie integration allows the user to capture a selfie photograph for biometric validation. The integration was developed for onboarding processes in Colombia. If you want to adapt this integration to another country, contact your admin.

Advantages of this integration include:

  • Identity verification performed by an AI-based facial biometrics engine to prevent possible fraud attacks.

  • Selfie Alive. With this feature activated, you can capture two photos of the user for authentication and biometric identification.

Note

The integration described in this article may not be implemented in your environment or enabled for all your clients. Contact your admin for assistance.

Technical Details

API ID

589

API Code

veridas_selfie

Call API version

1.0

SDK Version

iOS:

VDPhotoSelfieCapture: 4.0.0

VDLogger: 1.1.1

ImageProcessing: 1.8.6

VDLibrary: 5.4.1

SSZipArchive 2.2.3

Android:

selfie-capture: 5.0.0

logger: 3.8.0

image-processing: 6.3.0

App Version

iOS: [7.0.0]

Android: [7.1.0] (It is necessary to have the Android plugin and a Gradle version available from 7.1.0-stable branch onwards)

Objective

Biometric validation

Classification

Digital onboarding

Available for

iOS, Android

Platforms

Platform

Notes

iOS

As cocoapods was used in iOS (with the cocoapods-art plugin), it is necessary to configure the credentials from the .netrc file to get the dependencies.

Android

This SDK should be accompanied by the large_heap permissions.

It is necessary to configure the credentials to get the Maven artifacts. For that purpose, the following parameters were configured:

  • VERIDAS_ARTIFACT_URL

  • VERIDAS_ARTIFACT_USERNAME

  • VERIDAS_ARTIFACT_PASSWORD

Use the Veridas Selfie Integration in Studio

The following function is available for use in your legacy processes, and you can also use it as a block in Lambda processes. Click the function to see more details.

CaptureSelfie

Initialize the selfie capture process

CaptureSelfie

This function initializes the selfie capture process. This process can be performed in two different ways:

  1. Normal mode: One selfie of the user not smiling is taken and returned in base64 in the value of Register 290.

  2. Selfie Alive mode: Two selfies are taken. One of the user smiling and one of the user not smiling. One of the selfies is used for authentication and is returned in base64 in the value of Register 290. The other selfie is used for biometric identification and is returned in base64 in the value of Register 291. This mode is activated by default with the livePhoto parameter of the JSON provided as input parameter in Register 390.

Parameter Configuration

This function requires you to customize the SDK by completing the value of Register 390 (Input parameters) with a JSON.

Function ID

Register

Value

110

1

Input Registers

Register

Description

Mandatory

Value

390

JSON for the customization of the SDK

X

The values shown are the default values provided when entering an empty JSON {}. It is also possible not to include every value in the JSON.

{
"livePhoto":"YES",
"smartSelfie":"NO",
"closeButton":"YES",
"veridasLogoShow":"NO",
"showSelfie":"YES",
"infoAlertShow":"NO",
"showTutorial":"NO",
"tickCircleColor":"#3edc1c",
"tickColor":"#ffffff",
"smileRequestSmile":"Now, smile!",
"smileRequestSerious":"Nice smile! Now, without smiling.",
"searchingFaceStepInstruction":"Center your face within the frame and remain steady",
"checkSelfieText":"If the capture is OK, tap Continue.",
"faceDetectedOkColor":"#3edc1c",
"faceDetectedNotCenteredColor":"#fc321e",
"continueButtonBackgroundColor":"#1973B8",
"continueButtonTextColor":"#ffffff",
"continueButtonText":"Continue",
"repeatButtonBackgroundColor":"#072146",
"repeatButtonTextColor":"#5BBEFF",
"repeatButtonText":"Repeat",
"backgroundColor":"#072146"
}
Output Registers

Register

Description

Value

112

Call Result

000

SELFIE_CAPTURED_SUCCESSFULLY

001

JSON_EMPTY_ERROR

002

SDK_PREVIOUSLY_STARTED_ERROR

003

JSON_SYNTAX_ERROR

004

SELFIE_PARSE_ERROR

005

SDK_ERROR (SDK internal error)

290

Selfie 1

Base64 string

291

Selfie 2 (only if Selfie Alive is activated)

Base64 string