Authorize
sessionSelect for Deposit
or Select for Withdrawal
), then create a payment session for the Authorize
use case.
Authorize
SessionAuthorize
:
Authorize
flow:
complete
eventcomplete
event is raised, you will receive the transaction
alongside a trigger
property containing the reason why the event was raised.
complete
event being raised does NOT guarantee that the transaction was completed successfully. You MUST check the transaction status and trigger reason to determine the actual outcome and handle the event correctly.trigger.reason
indicates why the complete event was fired:
transaction-status-changed
, examine the transaction status:
failed
, you can obtain more information in the transaction’s statusDetails field. This will help you return a more specific message to the user:
max-retries-reached
, the Widget has stopped polling but the transaction may still be processing. This occurs when the transaction requires more time than usual to complete and will reach a final state at a later time:
cancel
eventcancel
event is fired when the user cancels the authorization process.
error
eventerror
event is fired when an error occurs during the authorization process.
An error can occur while:
code
and details
properties to distinguish between those kinds of errors.