PaymentResult class abstract
Base type for results returned from a payment gateway.
Each result knows which gatewayName it came from, and exposes isSuccess to distinguish between PaymentSuccess and PaymentFailure.
- Implementers
Constructors
- PaymentResult.new(String gatewayName)
-
Creates a result tagged with the name of the originating gateway.
const
Properties
- gatewayName → String
-
The human-readable name of the payment gateway that produced this result
(e.g.,
"Paystack"
,"Mollie"
).final - hashCode → int
-
The hash code for this object.
no setterinherited
- isSuccess → bool
-
Whether this result represents a successful payment.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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