Skip to Content
v1.1

M-Pesa Java SDK

This project integrates with the Mpesa API, providing functionality to trigger payments, validate them, register payment notification URLs, and handle USSD push requests and other requests.

Getting Started
Get started with the M-Pesa API SDK for Java in minutes.
Learn more
Secure Authentication
Fully managed authentication and access token management.
Spring boot support
Out of box spring boot support
Learn more
Predefined Data Models
Includes ready-to-use models like UssdPushRequest, RegisterUrlRequest, and more.
Learn more
Async & Sync API Support
Supports both synchronous and asynchronous API calls for optimal performance.
Learn more
Custom HTTP Client
Flexible and customizable HTTP client for M-Pesa API requests.
Learn more
Automatic Validation
Built-in validation for request integrity and error handling.
Comprehensive Testing
Includes tests using MockWebServer and real integration tests.