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
For all M-Pesa APIs consultation, contact Peter via https://consult.peternjeru.co.ke/ or through the number (+254)705-740 384