How M-Pesa integration works
Using the Daraja API, your site sends a payment request to a customer's phone. They enter their M-Pesa PIN to confirm, and Safaricom notifies your site that the payment succeeded. The customer sees a confirmation, and your records are updated automatically.
- Customer enters amount and phone number on your site
- An STK Push prompt appears on their phone
- They confirm with their M-Pesa PIN
- Your system receives and records the confirmation