A quick link to the M-Pesa API tutorial: https://peternjeru.co.ke/safdaraja/ui/ Or check out the new, more convenient and more stable REST API to M-Pesa: ProxyAPI