Class StkPushResponse
java.lang.Object
io.github.openpaydev.mpesa.core.models.StkPushResponse
Represents the synchronous response received from the M-Pesa API immediately after initiating an
STK Push.
This is NOT the final result of the transaction. This object confirms that M-Pesa has received the request and is processing it. The final result will be sent to your callback URL.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()booleanA unique identifier for the transaction generated by the M-Pesa system.A message that can be displayed to the end-user.A unique identifier for the transaction that was provided by the merchant's system.The status code of the request.A brief description of the response code.inthashCode()toString()
-
Method Details
-
builder
-
getMerchantRequestID
A unique identifier for the transaction that was provided by the merchant's system. -
getCheckoutRequestID
A unique identifier for the transaction generated by the M-Pesa system.Important: This is the ID you must use to query the status of the transaction later.
-
getResponseCode
The status code of the request. A value of "0" indicates that the request was successfully received and is being processed. Any other value indicates an error with the initial request. -
getResponseDescription
A brief description of the response code. Example: "Success. Request accepted for processing" -
getCustomerMessage
A message that can be displayed to the end-user. Example: "Success. Request accepted for processing" -
equals
-
hashCode
public int hashCode() -
toString
-