Usage
How to use the Smile ID Web Integration
Steps
Fetch the web token from your server, when ready
Configure the web integration
Test the Integration
Fetch the Web Token from your server
Using the Web Token endpoint set up on your server, fetch a web token for the client
This can take the form of a click event on your web site or application.
Configure the Web Integration
With the web token, we can now configure our integration
The API for configuring the integration is as follows
Key | Type | Required | Description |
---|---|---|---|
| string | Yes | token generated on the server side using the |
| string | Yes | one of the Smile ID products.
|
| array | Yes (for | a list of previously uploaded document IDs |
| string | Yes | a callback URL on your API server or wherever you prefer. |
| string | Yes | one of |
| object | Yes | |
| function | No | function to handle successful completion of the verification. |
| function | No | function to handle errors with verification, called when end-user consent is denied |
| function | No | function to handle closing of the verification process |
| object | No |
|
| object | Yes, for ID Types where user consent is required. |
|
| array | No | list containing |
| boolean | No | Whether to allow Agent Mode or not. If allowed, a button will be displayed allowing toggling between the back camera and front camera. If not allowed, only the front camera will be used. To use agent mode, the new design should be opted for by setting |
* - onError
function can take one argument of the shape { message: <message>, data: <object with details> }
** - id_selection
list is checked against those enabled for your partner account. this is limited in cases of basic_kyc
, enhanced_kyc
, enhanced_document_verification
, and biometric_kyc
.
If you pass only one country and id type in theid_selection
object, the id type selection screen will not be displayed in the web integration instance
*** - consent_required
list is subject to the ID Authority configuration. some ID Authorities require end-user consent, and that requirement overrides this setting
partner_details
configuration reference
partner_details
configuration referenceKey | Type | Required | Description |
---|---|---|---|
| string | Yes | Application Name |
| string | Yes | Smile ID Partner ID |
| string | Yes | URL to data privacy policy |
| string | Yes | URL to App Logo (best in 1:1 aspect ratio) |
| string | No |
Test the Integration
After configuring the integration, you can walk through an example.
Theme Color
Last updated