Responses
The Shufti Pro SDK will send a callback response to your application when the user completes the verification process and the control shifts to your user application. This callback response includes a JSON object containing the complete verification details, as well as an event that indicates the status of the request (e.g., accepted, declined, or other status).
Response Events
Events are sent in responses that show the status of the request. These events are sent in callbacks for both onsite and offsite verifications.
Following is the list of callbacks we receive in the callback function.
Event | Description |
---|---|
request.unauthorized | The auth header is not correct and, client id/secret key may be invlaid. |
request.pending | This event is returned for all on-site verifications until the verification is completed or timeout. |
verification.accepted | Verification accepted callback. |
verification.declined | Verification declined callback. |
permission.denied | This event is returned if the user did not give camera and other permissions to SDK. |
request.timeout | This will occur if request has timed-out. |
verification.cancelled | This callback is returned when verification is cancelled midway by the end user. |
request.received | This event states that the verification request has been received and is under processing. |
request.invalid | The request invalid event occurs when the parameters specified in the request payload are not in the correct format. |
Internet Connection Error | This callback is returned in case of lost internet connectivity. |
Error Occured | This callback is returned if some error occurs while processing request. |
info
You can check complete response of Shufti Pro from here