StkPushQueryRequest

constructor(businessShortCode: String, passKey: String, checkoutRequestId: String)

Parameters

businessShortCode

This is organizations shortcode (PayBill or BuyGoods - A 5 to 7-digit account number) used to identify an organization and receive the transaction. Sample: Shortcode (5 to 7 digits) e.g. 654321

passKey

If you need a passkey for mpesa online payments solutions (specifically express STK push) simply email m-pesabusiness@safaricom.co.ke and they will send it to you.

checkoutRequestId

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


constructor(businessShortCode: String, password: String, timestamp: String, checkoutRequestId: String)

Parameters

businessShortCode

This is organizations shortcode (PayBill or BuyGoods - A 5 to 7-digit account number) used to identify an organization and receive the transaction. Sample: Shortcode (5 to 7 digits) e.g. 654321.

password

This is the password used for encrypting the request sent: a base64 encoded string. (The base64 string is a combination of Shortcode+Passkey+Timestamp).

timestamp

This is the Timestamp of the transaction, normally in the format of YEAR+MONTH+DATE+HOUR+MINUTE+SECOND (YYYYMMDDHHMMSS). Each part should be at least two digits, apart from the year which takes four digits.

checkoutRequestId

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