Web SDK Customer Onboarding (KYC) integration v2
Table of Contents
Introduction
The current flow only allows using the Web Browser SDK by installing it through npm or using it as a script.
Latest version
Latest Major version is v2.x.x
Refer to Changelog for latest versions and changes.
Compatibility
Supported: Only web browsers (Chrome, Firefox, Safari, Edge etc.).
Not supported: Native application languages like React-Native, Flutter etc.
Getting started with npm
To begin, run the following command:
npm install @ondato-public/idv-sdk
Prerequisites
Adjusted .npmrc file with custom registry.
@ondato-public:registry=https://pkgs.dev.azure.com/Ondato/PublicNPM/_packaging/ondato-public-npm/npm/registry/
Obtain your unique idv setupId. Process configuration is specified based on your needs.
Please reach out to [support@ondato.com] for assistance.
The SDK can be utilized by generating an idv ID or by using idv setupId (where the idv id is generated automatically)
Verify the Web browser version limitations.
Refer to the documentation here.
Review npm examples for a better understanding.
Example npm
Typescript:
Full TypeScript support is available. Full list *.d.ts types can be downloaded from script examples or when installed through npm.
Getting started with javascript Script
To begin, run the following command:
Prerequisites
Ensure the script is configured with the correct ondato-sdk library build file in the index.html.
Obtain your unique idv setupId. Process configuration is specified based on your needs.
Please reach out to [support@ondato.com] for assistance.
The SDK can be utilized by generating an idv ID or by using idv setupId (where the idv id is generated automatically)
Verify the Web browser version limitations.
Refer to the documentation here.
Example script
Flows explained
To illustrate how to implement flows, consider the following code snippet:
load()
Purpose: To invoke the initial Web SDK instance.
Return: On success, it provides the
idv.begin()
andidv.end()
methods.Accepted property: The
mode
interface (used for setting the environment).
exampleSdk.idv.customiseStyleonload()
Purpose: This function enables customization of certain CSS styles within the SDK.
Accepted property:
({ background: { opacity: 0, blur: '0' } })
exampleSdk.idv.begin()
exampleSdk.idv.end()
How to generate IDV ID?
Generate idvID fromhttps://sandbox-idvapi.ondato.com/swagger/index.html → post
/v1/identity-verifications
Provide correct and existing setupId.
Each unique session requires a new generation
Frequently Asked Questions (FAQs)
Why should both the
begin()
andload()
methods be used within a try-catch block?Both methods should be utilized within a try-catch block to ensure proper error handling.
What happens to the session id during an F5 (page refresh)?
In the event of an F5 (page refresh), the same session id will be retained, allowing the same session to be loaded seamlessly.
Where can I find a list of available languages?
For a list of available languages, refer to the documentation here: Localization | 🗣️ Supported languages
What is IdvId and idv setupId
Idv id is process session id (each session has a uniquely generated idvId), and idv setupid id is unique static client configration id (static id always remains the same)
What is Idv
Idv is a shortname and stands for identity verification.
Changelog