A webhook receiver must verify the provider signature against the raw request body, enforce timestamp and replay protections, and persist an idempotency key before changing financial or service state.
The presence of an admin webhook interface does not prove a live gateway is configured or that a customer payment can settle. Provider credentials and secret material must remain server-side.
Steps
- Verify signatures and event ownership before processing.
- Make repeated deliveries idempotent and retain an audit record.
- Reject invalid callbacks without exposing secret details.