NoonPaymentResult class

A structured result from the Noon Payment SDK.

Constructors

NoonPaymentResult.cancelled()
Creates a cancelled result
factory
NoonPaymentResult.failed({String? errorCode, String? errorMessage})
Creates a failed result
factory
NoonPaymentResult.fromInitiateResponse(String rawResponse)
Parses the JSON response returned by Noon's INITIATE API (used by the direct Apple Pay flow).
factory
NoonPaymentResult.parse(String rawResponse)
Parses a result from the raw SDK response. Intelligently checks if the response is actually an error payload.
factory

Properties

data Map<String, dynamic>?
Parsed response data (available on success)
final
errorCode String?
Error code if payment failed
final
errorMessage String?
Error message if payment failed
final
hashCode int
The hash code for this object.
no setterinherited
isCancelled bool
Whether the payment was cancelled
no setter
isFailed bool
Whether the payment failed
no setter
isSuccess bool
Whether the payment was successful
no setter
rawResponse String?
The raw JSON response string from the SDK (available on success)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status NoonPaymentStatus
The status of the payment
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