Keep your application in sync.
The proposed design signs the timestamp and raw request body with HMAC-SHA256. Verification, timestamp tolerance and constant-time signature comparison must happen on your server. This demo does not sign or deliver real events.
Verify the signature before parsing or processing the event.
Deduplicate by event ID and respond quickly after durable enqueue.
Expect retries and out-of-order events; retrieve the current payment state.
payment.*{
"id": "evt_demo_001",
"type": "payment.confirmed",
"created_at": "2026-11-07T12:04:25Z",
"data": { "payment_id": "pay_demo_1048" },
"sandbox": true
}
Server-side authentication, input validation, wallet ownership checks, network monitoring, finality policy, signature verification and operational controls require separate implementation. Fulfill orders only from a verified backend state.