Plugin Response
Response States
SUCCESS
: Process finished successfully
EXIT
: Process terminated by the user with no errors
FAILURE
: Process finished with the user's failure to pass the service requirements
ERROR
: Process terminated due to an error in the builder
Note: In the case ofERROR
, please check your configurations
Primary Response Object
nameValuePairs
Note: All SDK responses are returned in JSON format
Note: This is the first-level object
nameValuePairs
Object Body
nameValuePairs
Object Bodystate
<string>errorCode
<string>errorMessage
<string>ocrResult
<object>capturedImages
list<object>events
list<object>errors
list<object>
ocrResult
Object Body
ocrResult
Object BodyNote: This is the second-level object that contains all third-level objects
sessionID
<string>
Note: captures
object contains the latest images used for the OCR service
The raw response in hmacDataList
should be mapped to the result object as per the HMAC Validation Documentation
Review Required Feature Breakdown:
The following are possible values that could come in the review required list along with their triggers
capturedImages
Object Body
capturedImages
Object BodynationalIDLabel
<string>nationalIdImage
<base64-string>
Note: capturedImages
is a list of objects that contains all images captured throughout the experience
events
Object Body
events
Object Bodydate
<string>key
<string>screen
<string>timestamp
<string>type
<string>
errors
Object Body
errors
Object Bodycode
<string>message
<base64-string>date
<string>screen
<string>timestamp
<string>type
<string>
Note: events
and errors
objects are only returned if enable_logging
is set to true from the plugin configuration
State Responses
SUCCESS
nameValuePairs
<object>state
<string>ocrResult
<sub-object>capturedImages
<sub-object>events
<sub-object>errors
<sub-object>
EXIT
nameValuePairs
<object>state
<string>ocrResult
<sub-object>capturedImages
<sub-object>step
<string>events
<sub-object>errors
<sub-object>
Note: step <string> identifies the point where the user chose to exit the SDK
FAILURE
nameValuePairs
<object>state
<string>errorCode
<int>errorMessage
<string>capturedImages
<sub-object>ocrResult
<sub-object>events
<sub-object>errors
<sub-object>
ERROR
nameValuePairs
<object>state
<string>errorCode
<int>errorMessage
<string>
Last updated