All Classes and Interfaces

Class
Description
Represents the response object received from the M-Pesa OAuth token generation endpoint.
 
Represents the request payload for registering the C2B confirmation and validation URLs.
 
Represents the response received from M-Pesa after a C2B URL registration request.
 
Enum representing the response type for C2B URL registration.
 
Represents the C2B transaction payload sent by M-Pesa to the confirmation and validation URLs.
 
Represents the JSON response your application must send back to M-Pesa from your validation URL.
Thrown when the M-Pesa API returns a non-successful HTTP response (e.g., 4xx or 5xx).
 
A utility class for parsing the JSON callback sent by the M-Pesa API.
The main client for interacting with the Safaricom M-Pesa API.
Configuration object for the Mpesa API client.
 
Enum representing the M-Pesa API environments and their corresponding endpoint URLs.
 
 
Concrete implementation of the TokenManager interface.
 
Represents the entire JSON object received from M-Pesa on the callback URL after a transaction.
The main container for the callback data.
 
A key-value pair representing a piece of transaction metadata.
 
A container for the list of metadata items.
 
 
Contains the core details and result of the STK Push transaction.
 
A runnable example demonstrating how to use the MpesaClient for an STK Push and Status Query.
Represents the complete request model for an M-Pesa STK Push API call.
 
Represents the synchronous response received from the M-Pesa API immediately after initiating an STK Push.
 
 
Represents the internal request payload for the M-Pesa STK Push Status Query API.
 
Represents the response object received when querying the status of an STK Push transaction.
 
 
Enum representing the M-Pesa transaction types for STK Push.