Skip to content

Tutorials

The rest of this site answers questions about one API at a time. These pages build something end to end — the whole path from an empty Laravel application to a payment you can prove arrived.

Each one is a working integration rather than a snippet, and each says what breaks in production as well as what works in sandbox. Read them in order, or jump to the one you need: each lists what it assumes at the top.

Taking one payment is the easy half. These guides cover the part that decides whether your books are right a month later:

  • Reconciling payments — find the payments whose callbacks never arrived, and prove the ones that did.
  • Handling callbacks — the routes, the events, and why a callback is not a record.
  • Going live — what Safaricom requires before real money moves.

Laravel Daraja is free and open source, maintained by eazysoft.

An independent open-source project, not affiliated with, endorsed by, or sponsored by Safaricom PLC or Laravel LLC. M-Pesa and Daraja are trademarks of Safaricom PLC; Laravel is a trademark of Laravel LLC. Used here only to say what this package works with.