Checkout failure alerts
How ChangeTrace notices a broken checkout within minutes, the exact rules, and when the incident closes itself.
Sales-drop detection judges whole days, so a checkout that breaks at 10:00 would not surface until the next morning. Checkout failure alerts close that gap: failed checkout attempts are checked every 10 minutes, and a spike opens a critical incident and emails you.
What counts as a failed attempt
| Store | Counted as a failure |
|---|---|
| WooCommerce | Checkout rejected or errored (checkout_failed), payment refused (payment_failed) |
| Easy Digital Downloads | Checkout rejected (edd_checkout_failed), payment refused (edd_payment_failed) — including Stripe card declines |
An order marked failed later (order_failed — say, a week-old bank-transfer order cancelled by
hand) is not a checkout failure and is not counted.
Both the classic (shortcode) checkout and the block checkout — the WooCommerce default since 8.3 — are covered. Block checkout needs plugin 0.5.0 or later. EDD rejected checkouts and Stripe declines need plugin 0.5.1 or later.
When it opens an incident
Over the current hour and the hour before it (by default), all three must be true:
- At least 5 failed attempts. Fewer is noise — a couple of typo'd card numbers is normal.
- At least half of attempts failed. An attempt is an order placed, or a failure that never became an order. WooCommerce records the order before taking payment, so a refused payment is one attempt, not two; EDD records it only once paid, so there a rejected checkout or refused payment is its own attempt.
- At least 3× your normal failures for a window that long, averaged over the last 7 days. A store whose checkout always rejects a few attempts is not reported as broken.
A brand-new site has no normal yet, so rules 1 and 2 alone apply.
- Title looks like "Checkout failing: 8 failed attempts in 2h (89% of attempts)"
- Always critical, so it emails organization owners by default
- One incident at a time per store (per WooCommerce and per EDD, if a site runs both) — a failure that continues does not email you again
- If ChangeTrace support closes one as handled or a false positive, it will not re-open for 24 hours
- Gets ranked causes like any incident: the changes made before the first failing hour
How quickly
Events reach ChangeTrace every 5 minutes, sales are totalled every 10 minutes, and this check runs every 10 minutes — so an incident usually opens within about 20 minutes of the fifth failure.
When it closes itself
Once two complete hours after the incident took at least one order and fewer than half of attempts failed — and the most recent hours would no longer open an incident — it resolves with the reason Metric recovered. A low failure count alone is not enough: four failures against one order is still a broken checkout.
The order requirement is deliberate: when checkout is broken badly enough, customers stop trying and failures stop too. Silence is not recovery, so an incident stays open until a sale goes through.
{ }For developers
Worker: CheckoutAlertService (apps/api/src/anomaly), kind = 'checkout', reading the hourly
metrics rows. Thresholds are environment-tunable: CHECKOUT_ALERT_MIN_FAILURES (5),
CHECKOUT_ALERT_MIN_RATIO (0.5), CHECKOUT_ALERT_MIN_BASELINE_MULTIPLE (3),
CHECKOUT_ALERT_WINDOW_HOURS (2), CHECKOUT_ALERT_BASELINE_DAYS (7),
CHECKOUT_ALERT_RECOVERY_HOURS (2). The 3× baseline is averaged over the history the site actually
has (up to 7 days), not divided across 7 days regardless.

