Events
HTML5 native events dispatched to the window object.
Widget events are implemented using the browser API Custom Events and are directly dispatched to the window object. Smart UI events will carry special data in the event object detail property. Keep reading to find more information about that data.
Listening for events:
The events were extended on v4.2 to include all the current information contained in the Smart UI. All event objects will now contain at least the following information in the “detail” property.
This isn’t a complete API description, but among other properties, Applicant and Document objects carry the following information:
For FF_CHECK_RESULT
, e.detail
is
checkSummary
: object with check results and issues found,resultSlug
: one ofsuccess
// finalpending-success
// finaltoo-many-tries
// finalno-match
// will looppartial-match
// will loop
nextViewSlug
: might be the same values as “resultSlug”, but also “external-idv” if widget is configured for it,applicant
: applicant object with personal information, including the applicant’s entity id which can be used with our API calls,documents
: array with all documents and document checks for this applicant,attemptCount
: how many times has the user attempted checks on this instance of the widget so far,maxAttemptCount
: max attempt count configured,externalIdv
: is external idv activated per configuration,isCheckingAddress
: are addresses activated per configuration,isCheckingIDs
: are documents activated per configuration,
For FF_EXTERNAL_IDV_CHECK_COMPLETED
, e.detail
is much simpler. It only includes:
applicant
: applicant object with personal information, including the applicant’s entity id which can be used with our API calls,documents
: array with all documents and document checks for this applicant,
Note on Biometrics and Smart UI
Our current biometrics offering is asynchronous and can take up to 5 mins, we do recommend the following:
- Have a warm offboard when the customer finishes biometrics, use the event FF_EXTERNAL_IDV_CHECK_COMPLETED which indicates that Biometrics has been submitted successfully; however, it does NOT indicate biometrics results are finished.
- Wait for notification via your webhook endpoint for the final outcome of this entity including biometrics results (this can take up to 5 mins)
- Notify the customer of the next step based on the result…