Overview
TheUnifiedCheckoutPaymentStatus enum represents the various states a payment transaction can be in during the checkout process. It provides clear status indicators for tracking payment lifecycle events.
Definition
Enum Values
paymentFailed
Indicates that the user performed a transaction but the payment failed. This occurs when there are issues processing the payment such as insufficient funds, network errors, or payment gateway rejections.paymentSuccess
Indicates that the user has successfully completed the payment. This is the desired outcome of a checkout transaction.pending
Indicates that a transaction is in progress. This status is typically returned when the user performs a bank pay transaction and the receipt is successfully downloaded, but final confirmation is still pending.unknown
Indicates an unknown payment state. This occurs when the user cancels the transaction after a payment attempt but before the status could be verified.userCancelledPayment
Indicates that the user closed the checkout page without performing any transaction. This represents an explicit user action to abandon the checkout process.Usage Example
See Also
- CheckoutCompletionStatus - Contains the payment status along with transaction details
- Handling Payment Completion - Learn how to handle payment completion in your app