Event model
Moflay currently exposes webhook events for:payment.completedpayment.failedcustomer.createdcustomer.updatedcustomer.deleted
Configure webhooks
Open the Webhooks page
In the dashboard, open Webhooks.
Verify webhook signatures
Moflay webhooks use Svix-style signing headers. Verify the request before you trust the payload.What a webhook gives you
Use webhook events to:- Mark orders as paid
- Unlock access after payment
- Send customer notifications
- Keep your internal transaction state in sync
Safaricom callbacks vs Moflay webhooks
- Safaricom callback: Handled by Moflay
- Moflay webhook: Sent from Moflay to your application
Verify the result
Your webhook setup is correct when:- Your endpoint receives a test or live event from Moflay
- Signature verification succeeds
- Your application processes the event idempotently