PaymobPaymentResult class
Result returned by the native Paymob SDK.
Constructors
-
PaymobPaymentResult({required PaymentStatus status, Map<
String, dynamic> ? transactionDetails, String? errorMessage}) -
const
- PaymobPaymentResult.fromPlatform(Object? raw)
-
Builds a result from the map sent over the platform channel.
factory
Properties
- amountCents → int?
-
Amount actually charged, in cents.
no setter
- errorMessage → String?
-
Error text for PaymentStatus.failure.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCancelled → bool
-
no setter
- isFailure → bool
-
no setter
- isPending → bool
-
no setter
- isSuccessful → bool
-
no setter
- message → String?
-
Human readable message: Paymob's
data.messageor errorMessage.no setter - responseCode → String?
-
Paymob
txn_response_code.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → PaymentStatus
-
Final state of the checkout.
final
- success → bool
-
Same as isSuccessful; kept for code written against 1.x.
no setter
-
transactionDetails
→ Map<
String, dynamic> ? -
Raw transaction fields sent by Paymob (only on PaymentStatus.successful).
Keys follow Paymob's naming, e.g.
id,txn_response_code,data.message.final - transactionID → String?
-
Paymob transaction id.
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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited