MpesaResponse class

Constructors

MpesaResponse.fromMap(int statusCode, Map<String, dynamic> rawResponse)

Properties

checkoutRequestID String?
This is a global unique identifier of the processed checkout transaction request.
getter/setter pair
conversationID String?
For every unique request made to M-PESA, a new ConversationID is generated and returned in the response. This ConversationID carries the response from M-PESA.
getter/setter pair
customerMessage String?
This is a message that your system can display to the Customer as an acknowledgement of the payment request submission.
getter/setter pair
errorCode String?
This is a predefined code that indicates the reason for request failure. This are defined in the Response Error Details below. The error codes maps to specific error message
getter/setter pair
errorMessage String?
This is a short descriptive message of the failure reason.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
merchantRequestID String?
This is a global unique Identifier for any submitted payment request.
getter/setter pair
originatorConversationID String?
The unique identifier of the transaction request, the purpose of this identifier is to track the transaction request. This is a global unique identifier for the transaction request returned by the API proxy upon successful request submission.
getter/setter pair
rawResponse Map<String, dynamic>
getter/setter pair
requestId String?
This is a unique requestID for the payment request
getter/setter pair
responseCode int?
This is a Numeric status code that indicates the status of the transaction submission. 0 means successful submission and any other code means an error occurred.
getter/setter pair
responseDescription String?
Response description is an acknowledgment message from the API that gives the status of the request submission usually maps to a specific ResponseCode value. It can be a Success submission message or an error description.
getter/setter pair
resultCode String?
getter/setter pair
resultDesc String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int
getter/setter pair

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