ConfirmPaymentDialog
Amount, destination, timing. Hold-to-confirm.
npx shadcn add @lopifi/confirm-payment-dialogExamples
The same component, case by case. Each stage is the shipped code with the props it shows; switch to Code for the usage.
Wire, irreversible
A wire can't be recalled: hold to send, typed SEND as the fallback, focus on Cancel.
How it behaves
What it renders, what it refuses to render, and why. The same paragraphs as the family spec, so the two can’t disagree.
Amount, destination, timing. In that order. Every time.
Send $12,400.00 to Northwind Ltd?
To account ••••4291 · Arrives 8 Sep
This can't be undone once submitted.
[Cancel] [Hold to send →]
AlertDialog. Focus lands on Cancel, never on the destructive action. Escape cancels.
For irreversible movements (wires, ACH past cutoff) the confirm is hold-to-confirm: 1500ms linear fill, 200ms release, slow where the user is deciding. The full spec, with keyboard and typed-confirmation fallbacks, is in the motion catalog. Hold can never be the only path; gating money behind a motor skill is an accessibility failure. The typed word is typedConfirmation, default SEND.
The accounting it encodes
The concepts this component renders, each defined once in the lexicon.
More in Payments
See also
Where this component is specified, defined and running.
Elsewhere in the system
The live section ConfirmPaymentDialog renders in, the calculators behind its figures, and the ledger payloads that feed it.
Components are copied into your repository and meant to be edited. Rounding policy, fiscal calendar and compliance copy differ per company.
Release notes
Get an email when Payments changes
Your copy doesn’t update itself when we fix something here.
- One email when a Payments component needs a migration
- Nothing when nothing changes
Or install it now