Problem
Settlement lagged. Webhooks fired more than once. Retries under load created duplicate risk and ops noise. The business needed money to clear in minutes, not weeks — without sacrificing auditability.
Hardening
Idempotency keys on every webhook. Schema validation before write. Exponential backoff with circuit breakers. Signature verification and dead-letter handling so chaos stayed contained. Transaction logging that finance could trust.
Result
Turnaround collapsed from ~20 days to ~60 seconds. Hundreds of millions processed with 99.9% uptime. The integration stopped being the bottleneck — it became the quiet path money takes.