Required headers
Moflay webhooks use Svix-style signing headers:Verify with Node.js
Verification rules
- Read the raw request body before parsing JSON.
- Verify the signature before updating internal records.
- Return a non-2xx response when verification fails.
- Store the signing secret in your backend environment variables.
After verification
After the signature is valid:- Check whether you already processed the webhook message.
- Inspect the event
type. - Update your internal order, invoice, or customer record.
- Return a successful response after your handler finishes.