TransactionStatus enum

Enumeration of possible transaction statuses.

This enum represents the final outcome of a payment transaction processed through the Amwal Pay SDK.

Values

  • success: Transaction completed successfully
  • failed: Transaction failed or was rejected

Usage Example

void handleTransactionResult(TransactionStatus status) {
  switch (status) {
    case TransactionStatus.success:
      showSuccessMessage();
      break;
    case TransactionStatus.failed:
      showErrorMessage();
      break;
  }
}
Inheritance
Available extensions

Values

success → const TransactionStatus

Transaction completed successfully.

This status indicates that the payment was processed and approved by the payment gateway.

failed → const TransactionStatus

Transaction failed or was rejected.

This status indicates that the payment could not be completed due to various reasons such as insufficient funds, invalid card details, or network issues.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transactionStatusImage Widget

Available on TransactionStatus, provided by the TransactionX extension

no setter
transactionStatusTitle String

Available on TransactionStatus, provided by the TransactionX extension

no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<TransactionStatus>
A constant List of the values in this enum, in order of their declaration.