Interface StkPushService
- All Known Subinterfaces:
MpesaService
- All Known Implementing Classes:
MpesaClient
public interface StkPushService
-
Method Summary
Modifier and TypeMethodDescriptionqueryStkStatus(String checkoutRequestID) Queries the status of an STK Push transaction.stkPush(StkPushRequest request) Initiates an M-Pesa STK Push request.
-
Method Details
-
stkPush
Initiates an M-Pesa STK Push request.- Parameters:
request- The STK Push request object.- Returns:
- The initial synchronous response from the API.
- Throws:
MpesaException- If a network or API error occurs.
-
queryStkStatus
Queries the status of an STK Push transaction.- Parameters:
checkoutRequestID- The unique ID of the transaction to query.- Returns:
- The response containing the transaction status details.
- Throws:
MpesaException- If a network or API error occurs.
-