Payment and Refund Statuses
Statuses are returned as uppercase enum values.
Payment statuses
CREATED,PENDING,CONFIRMEDAPPROVED,REFUSED,EXPIRED,ERRORABORTED,PENDING_CANCEL,CANCELED,FAILED_CANCELPENDING_REFUND,PARTIALLY_REFUNDED,REFUNDED,FAILED_REFUNDCREDITED
Use the response flags rather than inferring allowed actions from a status alone:
isAbortableindicates whether abort is currently accepted.isCancellableindicates whether cancellation is currently accepted.isRefundableandamountRefundableindicate whether and how much can be refunded.
These flags include active-refund checks and payment-method time-window policies, so they may become false while the displayed status remains unchanged.
Refund status summary
refundDetails.refundStatus summarizes the latest refund as PENDING_REFUND, PARTIALLY_REFUNDED, REFUNDED, or FAILED_REFUND. totalRefundedAmount contains the successful refunded amount in minor units.