UpiResponse class
Result of a UPI payment transaction
Constructors
- UpiResponse({required UpiTransactionStatus status, required String rawResponse, String? transactionId, String? responseCode, String? approvalRefNo})
-
const
- UpiResponse.fromResponseString(String response)
-
Parse raw UPI response string into UpiResponse
factory
Properties
- approvalRefNo → String?
-
Bank approval reference number
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isFailure → bool
-
Whether payment failed
no setter
- isSuccess → bool
-
Whether payment was successful
no setter
- rawResponse → String
-
Full raw response string from UPI app
final
- responseCode → String?
-
NPCI response code
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → UpiTransactionStatus
-
Final transaction status
final
- transactionId → String?
-
UPI transaction ID assigned by PSP
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