PAY-23Recommended
Alert when payments start failing
Alert when the payment success rate, failed webhook deliveries or the time since the last successful payment leave their normal range.
How to do it
Measure successful payments over attempts every 15 minutes, per payment method. Alert when the rate is more than 10 points below its average for the same hour last week. Also alert when more than 5 webhook requests in 15 minutes get a non-2xx answer from your endpoint. Alert too when no payment has succeeded for twice the longest normal gap. These are symptoms users feel, as alert on symptoms describes.
How to check
On staging, make the webhook endpoint answer 500 for 30 minutes. An alert fires within that time. Then send 20 payments with a declining test card. The success rate alert fires within 15 minutes.
Related rules
- OPS-4 Alert on how fast the budget burns in Operations and observability
- OPS-18 Alert on symptoms in Operations and observability
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/payments/payment-events-and-reconciliation/payment-health-alerts">Agent Wranglers payments and billing playbook</a>. In code you write, add a comment next to it with the same link.