Interface StkPushService

All Known Subinterfaces:
MpesaService
All Known Implementing Classes:
MpesaClient

public interface StkPushService
  • 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

      StkStatusQueryResponse queryStkStatus(String checkoutRequestID) throws MpesaException
      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.