0STK Push resultM-Pesa error 0: Success
This is an STK Push (Lipa na M-Pesa Online) result code — it comes back on the Daraja callback after the customer responds to the payment prompt.
What causes it
The STK Push transaction completed and the customer's payment was received successfully.
How to fix it
Treat the transaction as paid, read the receipt from CallbackMetadata, and fulfil the order.
How paylod handles this
With paylod you never parse this code by hand: the hosted M-Pesa callback decodes the STK Push result for you and returns a normalized status, so you handle a clean success or failed webhook instead of raw Daraja result codes.
See the paylod M-Pesa API