PaymentResultData class

Holds the outcome of a HyperPay payment operation.

Inspect paymentResult to branch on success, sync, error, or cancellation. When paymentResult is PaymentResult.error, errorCode and errorString contain the native SDK error details.

Constructors

PaymentResultData({required String? errorString, String? errorCode, required PaymentResult paymentResult})
Creates a PaymentResultData with the given paymentResult.

Properties

errorCode → String?
Machine-readable error code from the native SDK (e.g. "PLATFORM_NOT_SUPPORTED"). null when the transaction is not in an error state.
final
errorString → String?
Human-readable error message from the native SDK, or empty string on success.
final
hashCode → int
The hash code for this object.
no setterinherited
paymentResult → PaymentResult
The overall outcome of the payment transaction.
final
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