Resilience Flow
TweezerComm has a resilience mechanism for handling transaction completion or cancellation in case of errors or failures. This mechanism ensures that transactions are completed successfully or through retries and verification steps to prevent inconsistencies.
Resilience Mechanism
The flow chart below exemplifies the resilience flow in more detail:
The process begins when a transaction requires completion (settlement) or cancellation, and the system verifies whether a response has been received. From there, the flow can vary depending on the reaction.
- If a response was received, the system proceeds to check the
StatusCode
. If it is equal to0
, it will finish the completion process, else it will trigger the retry mechanism. - If no response is received, the system retrieves transaction details using the
getTransactionByVuid()
method.- To check if the transaction is finalized, the system evaluates if
IsFinalAmount=1
andTransactionDeposited=1/2
. - If they are not equal to those values, the system triggers the retry mechanism.
- To check if the transaction is finalized, the system evaluates if
The process continuously loops back to the start of the Completion/Cancel flow, ensuring that it continues until a definitive success or failure condition is reached.
See Also
Updated 8 days ago