Payment recovery
When a payment fails: a banner that says what went wrong and when it will be retried, and a recovery page with every unpaid invoice, the retry schedule, the date the workspace becomes read-only and a retry that reports the bank’s answer.
We couldn't collect €144.00. The bank said the card has insufficient funds. We'll try again on 13 Oct (attempt 2 of 4).
Last try to collect €144.00. The card was declined three times. If it fails, the workspace becomes read-only on 24 Oct.
€180.00 is overdue
2 invoices could not be paid with Visa ending 4242.
- INV-2026-0912Failed 1 Oct · Insufficient funds€144.00
- INV-2026-0877Failed 18 Sept · Card expired€36.00
- 1 Oct · Declined
- 4 Oct · Declined
- 13 Oct · Automatic retry
- 20 Oct · Automatic retry
- 24 Oct · Workspace becomes read-only. People can sign in and export, but not edit.
- 22 Jan · Data is deleted unless the balance is paid.
Questions? Talk to billing
The first retry is declined; the second goes through.
When to use
- Subscription products that retry failed charges.
- The page a dunning email links to.
When not to use
- A declined card at checkout; show the error in the form.
Installation
pnpm dlx shadcn@latest add @caliper/payment-recovery
Adds its 3 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
DunningBanner
11 props
PaymentRecovery
10 props
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It exposes status semantics, with aria-hidden, aria-label and aria-labelledby kept in step with state. Changes that matter are announced through a live region.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/payment-recovery.mdThe index of every part is at /llms.txt.