Example configurations
View examples of configurations that implement common use-cases.
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:
Incorrect:
Accept passports from countries different to address
The documentTypes
configuration 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.
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.