Checks · PAY-006

PAY-006 · No handling of failed invoice or deleted subscription

P2 Worth fixing

Why it matters

If a payment fails and the app never hears about it, the customer keeps access you are not being paid for.

How we detect it

Webhook switch has no case for invoice.payment_failed or customer.subscription.deleted.

How we fix it

Handle those events and update the entitlement.

Can it be fixed automatically? Yes, with a template change

Related checks

  • PAY-001 · Stripe webhook without signature verification
  • PAY-002 · Price or amount taken from client
  • PAY-003 · Paid access granted on redirect not webhook
  • PAY-004 · Webhook handler not idempotent
PAY-006 · No handling of failed invoice or deleted subscription — Rivyva