How to build reliable webhook handling for payment notifications, covering verification, idempotency, ordering, and failure recovery.