Skip to content
caliper ui pro docs

Payment flow diagram

A diagram of a payment passing from checkout through to settlement.

Pro
  1. 1Customer to Checkout: Pay $48.00
  2. 2Checkout to Gateway: Create charge
  3. 3Gateway to Card network: Authorize card
  4. 4Card network to Gateway: Approved
  5. 5Gateway to Ledger: Record payment
  6. 6Gateway to Checkout: Charge succeeded
  7. 7Checkout to Customer: Show receipt

Press Play or Step to run the payment.

When to use

  • Explaining how money moves in a product.
  • Showing the states of a payment.

When not to use

  • The audience needs a legal description.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/payment-flow-diagram

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

PaymentFlowDiagram

3 props
PropTypeDefault
actors *readonly string[]—
steps *readonly PaymentStep[]—
classNamestring—

Keyboard

  • No custom key handling; Tab and the native activation keys do the work.

Accessibility

It exposes region and status semantics, with aria-hidden, aria-label and aria-current 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-flow-diagram.md

The index of every part is at /llms.txt.

More in Diagrams