Web SDK (Javascript)

Andia selfie SDK for WEB (Chrome, Firefox, Internet Explorer 10)

Requirements

A desktop browser with full HTML5 support and access to a webcam.

** Due to the mobile web browsers restrictions, this SDK doesn't work on mobile devices **

  • Google Chrome 53+

  • Microsoft Edge 12+

  • Mozilla Firefox 42+

  • Safari 11+ (Mac)

Example

Integration

The integration of this SDK is very straight forward.

1) Inside any HTML page just import the Javascript library before the </body> tag

2) Include the following HTML fragment, to add a button

Parameters

customerID . Your customer API_KEY , mandatory (we provide these credentials)

face_id Mandatory in the Validation process, this face_id is returned in the Onboarding of a specific User. Then when a Selfie validation is required, this is the way to validate a user against her face_id. This parameter is empty when we call an Onboarding a new user.

callback Mandatory: Your “callback URL”, with a unique ID to identify the user’s transaction in the response.

action Mandatory: "onboarding" or "validate"

3) Callback

To get the result of the Selfie Validation or the Selfie Onboarding, just implement a POST data endpoint.

Response parameters

success . Boolean, true if the Selfie was made successful

data A Form Data object with the following fields.

Selfie OnBoarding Form Data Response

Selfie Validation Form Data Response

Last updated

Was this helpful?