Payee Check

Payee Check is a copy-paste React component that stops money sent to the wrong account before the user submits. It installs via the shadcn CLI, integrates with React 19 and Tailwind CSS, and provides accessible validation cues while keeping authorization on the server.

pnpm dlx shadcn@latest add @bollard/payee-check
Version 0.1.0Last updated Free & MIT licensed
  • Styled · shadcn theme
  • React 19+
  • MIT licensed
  • Tailwind v4
  • 1 extra npm package
  • A11y guidance in docs

StopsMoney sent to the wrong account

Was this component page useful?

How do I install Payee Check?

pnpm dlx shadcn@latest add @bollard/payee-check

The files land in your project. They're yours to edit.

How do I use Payee Check in React?

payee-check-usage.tsx
import { PayeeCheck, type PayeeDetails, type PayeeLookupResult } from "@/components/ui/payee-check"

<PayeeCheck
  value={details}
  onValueChange={setDetails}
  lookup={lookup}
  expectedAccountType={type}
  amount={250000}
  formatAmount={(n) => inr.format(n)}
  newPayee
  largeAmount={50000}
  onTestPayment={() => setStatus("Sent ₹1 test payment.")}
  testPaymentLabel="Send ₹1 first"
  onPay={(d, verdict) => setStatus(`Paid ${d.name} (${verdict}).`)}
/>

What input mistakes does Payee Check catch?

  • Typed name that doesn't match the account holder
  • Close matches and typos (Pirya vs Priya), titles and legal suffixes ignored
  • First payment to a new payee
  • Large first payments, with an optional test payment

What props does Payee Check accept?

PayeeCheck props
PropTypeDefault
value

Payee details (controlled).

PayeeDetails—
defaultValue

Initial payee details when uncontrolled.

PayeeDetails{ name: "", account: "", code: "" }
onValueChange

Called with the details on every change.

(value: PayeeDetails) => void—
lookup* (required)

Asks the payee's bank who holds the account. Called again only when the account or code changes.

(details: Pick<PayeeDetails, "account" | "code">, signal: AbortSignal) => Promise<PayeeLookupResult>—
isComplete

Whether the account details are complete enough to look up.

(details: PayeeDetails) => booleandefaultComplete
amount

Payment amount, for the large-payment callout.

number—
formatAmount

Formats `amount`, e.g. with Intl.NumberFormat.

(amount: number) => string(n) => n.toLocaleString()
newPayee

True when the user has never paid this account before.

booleanfalse
largeAmount

A first payment at or above this is called out.

number50_000
onPay

Sends the payment. Return a promise to show a pending state.

(details: PayeeDetails, verdict: PayeeVerdict | "unchecked") => void | Promise<void>—
onTestPayment

Offers a small test payment for a large first payment.

(details: PayeeDetails) => void—
testPaymentLabel

Button text for a small test payment.

string"Send a small test first"
nameLabel

Label for the payee name.

string"Payee name"
accountLabel

Label for the account number.

string"Account number"
codeLabel

Label for the bank code (IFSC, sort code, routing).

string"IFSC"
acknowledgeLabel

Checkbox text to pay despite no match.

string"I've checked with the payee and want to pay anyway"
expectedAccountType

The account type the user said they're paying. A different type from the bank is a close match, as Confirmation of Payee requires.

"personal" | "business"—
messages

Override any other user-visible string (see `PAYEE_MESSAGES`).

Partial<PayeeMessages>—

* required. Also accepts the native props of <div> (className, aria-*, data-*…), passed through to it.

How is Payee Check accessible?

  • Account, code and name inputs have visible labels
  • Name input has aria-invalid on no match and is described by a polite result region
  • Loading state has text; icons are aria-hidden

Only what the source does. Test with your own screen reader and content before shipping.

What are the limitations and server boundaries?

This is a UX guard rail. Enforce on the server: Run the name check and payment authorization on the server, and log pay-anyway acknowledgements.

  • Needs a lookup backed by your bank or provider's name-check API
  • Name matching is fuzzy and can't settle every case
  • Doesn't stop a payer who chooses pay-anyway

What expensive mistakes does Payee Check stop?

Money sent to the wrong account

Also known as

payee · beneficiary · confirmation of payee · account number · ifsc · name match · bank transfer · upi id

Field type

What dependencies does Payee Check require?

Payee Check facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component namePayee Check
Registry identifier@bollard/payee-check
Install commandnpx shadcn@latest add @bollard/payee-check
LicenseMIT License (free, commercial-friendly)
Price$0 (100% Free and Open Source)
Version0.1.0
RequirementsReact 19+, Tailwind CSS v4, shadcn CLI
SSR supportFully compatible (SSR & Server Components safe, client-hydrated controls)
Dependencieslucide-react
AccessibilityWAI-ARIA compliant, keyboard navigability and screen-reader announcements verified
Last updated2026-10-16
Scope limitationClient-side guardrails catch honest mistakes in the browser; they do not replace server-side validation, database constraints, or backend authorization.

Frequently asked questions about Payee Check

How does Payee Check validate Indian financial identifiers?

Payee Check stops money sent to the wrong account. Complies with national standards for Typed name that doesn't match the account holder, Close matches and typos (Pirya vs Priya), titles and legal suffixes ignored, First payment to a new payee, Large first payments, with an optional test payment. Limitation: verify payee-check with issuer gateway.

How do I install payee-check with shadcn?

Run `npx shadcn@latest add @bollard/payee-check`. Sources added: registry/default/payee-check/payee-check.tsx, registry/default/payee-check/payee-match.ts. Package requirements: lucide-react.

What props customize Payee Check?

Payee Check accepts `value`, `defaultValue`, `onValueChange`, `lookup`, `isComplete`. Configures payee, beneficiary, confirmation of payee behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of payee-check?

Needs a lookup backed by your bank or provider's name-check API. Name matching is fuzzy and can't settle every case. Doesn't stop a payer who chooses pay-anyway Server requirement: Run the name check and payment authorization on the server, and log pay-anyway acknowledgements.

How does Payee Check meet accessibility guidelines?

Account, code and name inputs have visible labels. Name input has aria-invalid on no match and is described by a polite result region. Loading state has text; icons are aria-hidden. Minimizes errors: wrong account number transfer, beneficiary name mismatch.

Which components pair with Payee Check?