A failed webhook erased the payment it was about.
Webhook handling ran in one transaction. If processing threw, the stored event rolled back with it and the payment left no trace. I split it: store the event first, process it in its own transaction, keep the error on the row, and let the gateway's redelivery retry it. A test now pins this.