PhonePePaymentResult class

Payment result returned from a PhonePe checkout flow.

This model wraps both a simplified status string and the full raw response payloads captured during the transaction. It also provides a convenience isSuccess getter.

Example:

final result = await PhonePeCheckout.startPayment(...);
if (result.isSuccess) {
  debugPrint('Payment successful: ${result.merchantTransactionId}');
} else {
  debugPrint('Payment failed: ${result.status}');
}

Constructors

PhonePePaymentResult({required String merchantTransactionId, required String status, required Map<String, dynamic> raw})
Creates a new PhonePePaymentResult.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
isSuccess bool
Returns true if the status equals "SUCCESS" (case-insensitive).
no setter
merchantTransactionId String
The merchant transaction ID you passed when starting the checkout.
final
raw Map<String, dynamic>
Raw payloads captured during the flow (create/status/etc).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status String
The simplified transaction status.
final

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