initiateStkPush
Initiates an STK Push (Lipa na M-Pesa Online) transaction.
STK Push - Lipa na M-Pesa Online API also known as M-PESA express (STK Push) is a Merchant/Business initiated C2B (Customer to Business) Payment.
Once you, our merchant integrate with the API, you will be able to send a payment prompt on the customer's phone (Popularly known as STK Push Prompt) to your customer's M-PESA registered phone number requesting them to enter their M-PESA pin to authorize and complete payment.
Return
A StkPushResponse object containing the acknowledgement details.
Parameters
stkPushRequest
The StkPushRequest object containing the request details.
Throws
DarajaException
if there is an error with the API call.