Skip to main content
This page contains example configuration objects for Smart UI. To include these examples in your own code, pass the example configuration object as the value of the config field. Don’t pass the example configuration directly to the intialiseOnboardingWidget() method. Correct:
JSON
Incorrect:
json

Accept passports from countries different to address

The documentTypesconfiguration field supports specifying document types as objects, where you can define the specific countries accepted for that document type. An array of acceptable countries can be specified for documentTypes and requestAddress separately.
If neither is specified the top-level acceptedCountries configuration field will be used.
You can specify the string "ALL" in place of an array to accept documents from any country.
JSON

Capture Social Security Number (United States)

We don’t support an explicit SSN field, but you can tailor the “National ID” document type to appear as an SSN field. Specify a custom document type as well as customising the label text.

Fraud Device/Phone/Email

Below is an example to enable the device/behaviour gathering and send across Email/Phone of the entity.