In this video, we walk you through how to query the status of an M-Pesa Express (STK Push) transaction using Safaricom's Daraja API. Learn how to verify if the transaction was successful, failed, or is still pending without relying solely on the callback URL response.
Topics Covered:
Generating timestamps and passwords for secure requests
Using Node.js and Python to prepare and send query requests
Properly setting authorization headers
Parsing API responses to track transaction outcomes
🚀 API Endpoints:
Sandbox: `https://sandbox.safaricom.co.ke/mpesa...`
Live: `https://api.safaricom.co.ke/mpesa/stk...`
If you're working with Lipa na M-Pesa Online, this guide will help you stay informed about your transaction status seamlessly.
#Mpesastatus #MpesaExpress #DarajaAPI #STKPush #PaymentStatus #JanjaProgrammers #JP #Fintech #KenyaTech