Sim Toolkit Push ()
STK Push (Sim Toolkit Push)
It is a seamless way to initiate payments by prompting users on their mobile devices to authorize transactions.
This article walks you through implementing M-Pesa STK Push in a Spring Boot application using OkHttp for HTTP requests.
😉 How STK Push Works! 😉
- User clicks pay in your app.
- Backend calls Safaricom's API (STK push).
- A popup on user phone is sent by Safaricom.
- User enters PIN (Transaction proceeds).
- Safaricom sends a callback response to confirm a success / failure outcome.