Skip to main content
Once an operation of a specific Operation Type was executed, and we interpreted its Result Code, we are ready to change the status of the actual payment. In case the operation we executed on the payment wasn’t successful, the status of the payment shouldn’t be changed. However, if the result of the operation is Unknown, we must change the status of the payment to Unknown and act fast to solve the situation so that we are able to either move the payment back to the previous status or to the new one. In case the payment status is Failed, there will be more information about the reason in the operation result field. You can find more information on the Result Codes page. The following is the state machine that illustrates how a payment status can evolve with time after many operations happen to it. Payment state machine: a payment starts as Created and moves through Pending and Authorized to Captured, then optionally Refunded; it can instead end as Failed, Expired, or Canceled, and any state can move to and from Unknown
Last modified on September 30, 2026