M-Pesa C2B Confirmation Callback (Public)
M-Pesa C2B
M-Pesa C2B Confirmation Callback (Public)
Register as ConfirmationURL in Safaricom Daraja.
Production URL: https://crypto.westminister.tech/api/v1/mpesa/c2b/confirmation
Persists c2b_payments. When BillRefNumber matches a merchant account, settlement is recorded and webhook c2b.payment.settled may fire.
POST
M-Pesa C2B Confirmation Callback (Public)
Body
application/json
Safaricom C2B validation/confirmation payload (Pay Bill / Buy Goods).
Example:
"Pay Bill"
Example:
"20260601120000"
Example:
"5000.00"
Must match merchant_c2b_accounts.account_reference