Class StkStatusQueryResponse
java.lang.Object
io.github.openpaydev.mpesa.core.models.StkStatusQueryResponse
Represents the response object received when querying the status of an STK Push transaction.
This object contains the results of a transaction status query, indicating whether the transaction was successful, is still pending, or has failed.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionbuilder()booleanThe unique identifier for the transaction that was generated by the M-Pesa system.The unique identifier for the transaction that was sent by the merchant.The status code of the initial query request itself.A brief description of the status of the query request.The status code indicating the final result of the transaction.A detailed description of the transaction's final result.inthashCode()toString()
-
Method Details
-
builder
-
getResponseCode
The status code of the initial query request itself. A value of "0" indicates that the query request was accepted for processing. -
getResponseDescription
A brief description of the status of the query request. Example: "Accepted for processing" -
getMerchantRequestID
The unique identifier for the transaction that was sent by the merchant. This is the same ID that was used in the initial STK Push request. -
getCheckoutRequestID
The unique identifier for the transaction that was generated by the M-Pesa system. -
getResultCode
The status code indicating the final result of the transaction. "0" means the transaction was successful. Any other value indicates a failure or a pending state. -
getResultDesc
A detailed description of the transaction's final result. Example: "The service request is processed successfully." -
equals
-
hashCode
public int hashCode() -
toString
-