The FlexitiSDK will capture these events and it will send the response through the function handlers defined on the Widget instance creation.
...
Code Block | ||||
---|---|---|---|---|
| ||||
window.parent.postMessage({ 'eventType': 'flx-success', 'eventData': { 'accountNumber': 2233000 / null 'verified': true / false 'action': Enum ["apply"|"purchase"|"activation"|"retry"] / null 'mfaOptionSelected': Enum [“sms”|“email”|“security_answer”] / null 'widget_session_id': GUID 'customerId': "1234567-12345" 'accountType': "business" / "consumer" } }, '*'); |
Success
‘eventType': ‘flx-success’: When the widget ends, after performing all the corresponding customer verification steps related to the flow, it will send the eventData JSON object with the following structure:
Code Block | ||||
---|---|---|---|---|
| ||||
'eventData': {
'accountNumber': 2233000 / null
'verified': true / false
'action': Enum [“apply”|“purchase”|“activation”] / null
'mfaOptionSelected': Enum ["apply"|"purchase"|"activation"|"retry"] / null
'widget_session_id': GUID
'customerId': "1234567-12345"
'accountType': "business" / "consumer"
} |
Info |
---|
Mandatory: The merchant must call the POST /apply endpoint on a flx-success widget response on the application flow. |
...