PayPalPaymentResult class

Represents the result of a PayPal payment approval process.

Constructors

PayPalPaymentResult({required bool success, String? orderId, String? payerId, String? status, String? errorCode, String? message})
const
PayPalPaymentResult.alreadyInProgress()
Convenience factory for concurrency errors.
factory
PayPalPaymentResult.fromMap(Map map)
Factory constructor to create a result from a native map response.
factory
PayPalPaymentResult.notInitialized()
Convenience factory for initialization errors.
factory
PayPalPaymentResult.timeout()
Convenience factory for timeout errors.
factory

Properties

errorCode String?
Detailed error code if the payment failed (e.g., "USER_CANCELLED", "SDK_NOT_INITIALIZED", "PAYMENT_TIMEOUT").
final
hashCode int
The hash code for this object.
no setterinherited
message String?
A human-readable message explaining the result or error.
final
orderId String?
The PayPal Order ID associated with this payment.
final
payerId String?
The Payer ID returned by PayPal after approval (if available).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status String?
The current status of the order (e.g., "APPROVED", "COMPLETED").
final
success bool
Whether the payment was successfully approved.
final

Methods

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

Operators

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