calin-beard
11/13/2017 - 4:27 PM

Display error message after Processing stage (instead of TY message) if the server where you send a WebHook responds with this JSON format:

Display error message after Processing stage (instead of TY message) if the server where you send a WebHook responds with this JSON format:

{
   error: boolen,
   error_message: string,
   error_message_timeout: (optional) int,
   error_fields: (optional) object 
}

example:
{
    error: true,
    error_message: 'Invalid email',
    error_message_timeout: 10,
    error_fields: {
        email: 'Invalid email'
    } 
}