BNPL Schedule Check

BNPL Schedule Check is a copy-paste React component that stops instalment fails on an expired card 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/bnpl-schedule-check
Version 0.1.0Last updated Free & MIT licensed
  • Styled · shadcn theme
  • React 19+
  • MIT licensed
  • Tailwind v4
  • 3 extra npm packages
  • A11y guidance in docs

StopsInstalment fails on an expired card

Was this component page useful?

How do I install BNPL Schedule Check?

pnpm dlx shadcn@latest add @bollard/bnpl-schedule-check

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

How do I use BNPL Schedule Check in React?

bnpl-schedule-check-usage.tsx
import { BnplScheduleCheck, payInN, paydaysEvery, type BnplPlan } from "@/components/ui/bnpl-schedule-check"

<BnplScheduleCheck
  instalments={PLAN}
  currency="USD"
  locale="en-US"
  weekStartsOn={0}
  paydays={PAYDAYS}
  others={OTHERS}
  card={{ label: "Visa •• 4242", expires: "10/26" }}
  bankLabel="checking account"
  lateFee={{ perMissed: 8, capPercent: 25 }}
  onConfirm={async (v) => {
    await new Promise((r) => setTimeout(r, 700))
    setDone(`Plan confirmed, paying from ${v.source === "bank" ? "checking" : "Visa •• 4242"}. Last payment ${v.dates.at(-1)}.`)
  }}
/>

What input mistakes does BNPL Schedule Check catch?

  • A card that expires before a scheduled payment
  • Payments due shortly before payday (gap set by payGapDays)
  • Several plans charging in the same week
  • The late fee and its cap, shown in money

What props does BNPL Schedule Check accept?

BnplScheduleCheck props
PropTypeDefault
instalments* (required)

The plan being offered, payment by payment. `payInN()` builds a pay-in-4.

BnplInstalment[]—
currency* (required)

ISO currency code for every amount.

string—
others

Plans already running, drawn on the same calendar.

BnplPlan[][]
paydays

Paydays, "YYYY-MM-DD". `paydaysEvery()` builds a fortnightly list.

string[][]
card

The card on file. Leave out to pay from the bank only.

BnplCard | null—
bankLabel

Name of the bank-account option.

string"bank account"
lateFee

The provider's late-fee rule, shown in money with its cap.

BnplLateFee—
value

Controlled source and dates.

BnplValue—
defaultValue

Initial source and dates when uncontrolled. Defaults to the card (if any) and the plan's dates.

BnplValue—
onValueChange

Called when the payment source or a payment date changes.

(value: BnplValue) => void—
onUpdateCard

Offer "Update card" next to the expiry warning.

() => void—
onConfirm

Called with the final schedule. May return a Promise; the button shows a pending state.

(value: BnplValue) => void | Promise<unknown>—
payGapDays

Flag payments this many days or fewer before payday. Default 3.

number—
maxShiftDays

Furthest a payment may be moved later. Default 7.

number—
firstPaidNow

The first payment is taken at checkout: it is labelled "today" and never offered a move. Default true.

booleantrue
weekStartsOn

First weekday of the calendar: 0 Sunday, 1 Monday. Default 1.

0 | 11
locale

BCP 47 locale for dates and money.

string—
messages

Override any visible string.

Partial<BnplScheduleCheckMessages>—

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

How is BNPL Schedule Check accessible?

  • The card problem is announced with role="alert"
  • Payment source is a role="radiogroup" with arrow-key navigation
  • Confirm sets aria-busy while pending; status is announced in a role="status" region
  • Issues use text and icons; motion respects prefers-reduced-motion

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: The provider's schedule, fees and card on file are the source of truth; re-check them on the server before confirming.

  • Paydays, other plans, the card expiry and the late-fee rule all come from your props
  • Moving a payment only changes the proposed date; the provider must allow it

What expensive mistakes does BNPL Schedule Check stop?

Instalment fails on an expired card

Also known as

buy now pay later · bnpl · pay in 4 · klarna · afterpay · affirm · instalments · installment plan

What dependencies does BNPL Schedule Check require?

BNPL Schedule Check facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameBNPL Schedule Check
Registry identifier@bollard/bnpl-schedule-check
Install commandnpx shadcn@latest add @bollard/bnpl-schedule-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, motion, date-fns
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 BNPL Schedule Check

How does BNPL Schedule Check prevent financial transaction errors?

BNPL Schedule Check prevents instalment fails on an expired card. Blocks A card that expires before a scheduled payment, Payments due shortly before payday (gap set by payGapDays), Several plans charging in the same week, The late fee and its cap, shown in money before processing. Limitation: apply idempotency keys for bnpl-schedule-check.

How do I install bnpl-schedule-check with shadcn?

Run `npx shadcn@latest add @bollard/bnpl-schedule-check`. Sources added: registry/default/bnpl-schedule-check/bnpl-schedule-check.tsx, registry/default/bnpl-schedule-check/bnpl.ts. Package requirements: lucide-react, motion, date-fns.

What props customize BNPL Schedule Check?

BNPL Schedule Check accepts `instalments`, `currency`, `others`, `paydays`, `card`. Configures buy now pay later, bnpl, pay in 4 behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of bnpl-schedule-check?

Paydays, other plans, the card expiry and the late-fee rule all come from your props. Moving a payment only changes the proposed date; the provider must allow it Server requirement: The provider's schedule, fees and card on file are the source of truth; re-check them on the server before confirming.

How does BNPL Schedule Check meet accessibility guidelines?

The card problem is announced with role="alert". Payment source is a role="radiogroup" with arrow-key navigation. Confirm sets aria-busy while pending; status is announced in a role="status" region. Issues use text and icons; motion respects prefers-reduced-motion. Minimizes errors: bnpl payment due before payday, card expires before last instalment.

Which components pair with BNPL Schedule Check?