StkPushResponse

@Serializable
data class StkPushResponse(val merchantRequestId: String, val checkoutRequestId: String, val responseCode: String, val responseDescription: String, val customerMessage: String)

STK push acknowledgement response

Constructors

Link copied to clipboard
constructor(merchantRequestId: String, checkoutRequestId: String, responseCode: String, responseDescription: String, customerMessage: String)

Properties

Link copied to clipboard
@SerialName(value = "CheckoutRequestID")
val checkoutRequestId: String

This is a global unique identifier of the processed checkout transaction request.

Link copied to clipboard
@SerialName(value = "CustomerMessage")
val customerMessage: String

This is a message that your system can display to the customer as an acknowledgment of the payment request submission.

Link copied to clipboard
@SerialName(value = "MerchantRequestID")
val merchantRequestId: String

This is a global unique Identifier for any submitted payment request.

Link copied to clipboard
@SerialName(value = "ResponseCode")
val responseCode: String

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.

Link copied to clipboard
@SerialName(value = "ResponseDescription")
val responseDescription: String

Response description is an acknowledgment message from the API that gives the status of the request submission. It usually maps to a specific ResponseCode value. It can be a Success submission message or an error description.