0C2B / B2C resultM-Pesa error 0: Success / Accepted
This is a C2B / B2C result code — it applies to customer-to-business validation or business-to-customer disbursement flows.
What causes it
The C2B/B2C/Reversal/Transaction Status/Account Balance request was processed successfully (for C2B validation this is the 'Accept' response).
How to fix it
Return ResultCode 0 to accept, and process the result/receipt details from the confirmation callback.
How paylod handles this
paylod records and decodes every C2B and B2C result, and lets you test the flow without hosting your own validation and confirmation callbacks — so you spend less time on Daraja plumbing and edge-case result codes.
See the paylod M-Pesa API