Class StkPushResponse.StkPushResponseBuilder
java.lang.Object
io.github.openpaydev.mpesa.core.models.StkPushResponse.StkPushResponseBuilder
- Enclosing class:
- StkPushResponse
-
Method Summary
Modifier and TypeMethodDescriptionbuild()checkoutRequestID(String checkoutRequestID) A unique identifier for the transaction generated by the M-Pesa system.customerMessage(String customerMessage) A message that can be displayed to the end-user.merchantRequestID(String merchantRequestID) A unique identifier for the transaction that was provided by the merchant's system.responseCode(String responseCode) The status code of the request.responseDescription(String responseDescription) A brief description of the response code.toString()
-
Method Details
-
merchantRequestID
A unique identifier for the transaction that was provided by the merchant's system.- Returns:
this.
-
checkoutRequestID
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.
- Returns:
this.
-
responseCode
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.- Returns:
this.
-
responseDescription
A brief description of the response code. Example: "Success. Request accepted for processing"- Returns:
this.
-
customerMessage
A message that can be displayed to the end-user. Example: "Success. Request accepted for processing"- Returns:
this.
-
build
-
toString
-