Good write-up. One duplicate I'd add to the test list is invoice.payment_failed. If the handler emails the customer directly, a redelivered event emails them twice about the same card. Keying the send on the invoice id plus attempt_count is a simple way to stop that.