Checkout Pages

2 variants

Checkout pages with step-by-step contact, delivery, and payment, a live order summary, discount codes, and a printed receipt.

Subscribe checkout

A subscription checkout on a holographic card whose foil follows the pointer. A declined card shrinks into a picker of saved cards, the one you pick grows back, and after payment it settles into the receipt.

Subscribe to Lumen Studio

$192.00per year

  • Unlimited projects
  • 4K exports
  • Priority renders
  • 5 team seats

Payment method

VISA

ending 4242

Visa ending 4242

Billed yearly
$240.00
Yearly discount
-$48.00
Tax
$0.00
Due today
$192.00

You allow us to charge this card for future payments. Cancel anytime in Settings.

"use client";

import { SubscribeCheckout } from "@/components/premium/checkout-pages";

export function SubscribeCheckoutPreview() {
  return <SubscribeCheckout />;
}

Install

$ bunx --bun shadcn add @beui-pro/checkout-subscribe

API Reference

Every prop is optional unless marked required. Data, copy, and colors default to the sample content.

SubscribeCheckout10 props
  • plan

    Plan being bought. Defaults to the sample plan.

    SubscribePlan
  • cards

    Starting saved cards, read once on mount; the first starts selected.

    readonly SavedCard[]
  • defaultEmail

    Starting value of the email field.

    string

    Default rhea@lumen.studio

  • defaultCycle

    Billing cycle selected at first. Defaults to yearly.

    "monthly" | "yearly"

    Default yearly

  • labels

    Text overrides merged over the default labels.

    Partial<SubscribeLabels>
  • invoiceHref

    Link for the receipt's invoice download.

    string

    Default #invoice

  • dashboardHref

    Link for the receipt's dashboard button.

    string

    Default #dashboard

  • onSubscribe

    Charge the card; reject to decline it and open the card picker.

    ((request: SubscribeRequest) => unknown)
  • onAddCard

    Save a new card; resolve once it can be charged.

    ((card: NewCardRequest) => unknown)
  • className

    Classes merged onto the root element.

    string
Types4 types

The object types these props take, field by field.

SavedCard7 fields
  • idRequired

    Unique card id, sent as `cardId` when subscribing.

    string
  • brandRequired

    Card network, which sets the wordmark printed on the card.

    CardBrand
  • last4Required

    Last four digits printed on the card and in its label.

    string
  • expiryRequired

    Two-digit month and year, such as "08/28".

    string
  • holderRequired

    Cardholder name printed on the card.

    string
  • finishRequired

    Foil the card face is printed in.

    HoloFinish
  • declines

    Demo only: charging this card is declined.

    boolean
SubscribePlan5 fields
  • nameRequired

    Plan name shown in the title and receipt.

    string
  • monthlyRequired

    Price per month in minor units, billed monthly.

    number
  • yearlyDiscountRequired

    Discount on the yearly price, from 0 to 1.

    number
  • taxRateRequired

    Tax rate from 0 to 1.

    number
  • featuresRequired

    Feature lines listed under the price.

    readonly string[]
SubscribeRequest3 fields
  • cardIdRequired

    Id of the card to charge.

    string
  • cycleRequired

    Billing cycle the customer chose.

    BillingCycle
  • totalRequired

    Amount due today in minor currency units.

    number
SubscribeLabels30 fields
  • titleRequired

    Builds the plan heading and accessible label from the plan name.

    (plan: string) => string
  • monthlyRequired

    Monthly tab text and receipt cycle name.

    string
  • yearlyRequired

    Yearly tab text and receipt cycle name.

    string
  • perMonthRequired

    Text after the price on the monthly cycle.

    string
  • perYearRequired

    Text after the price on the yearly cycle.

    string
  • emailRequired

    Label of the email field.

    string
  • paymentMethodRequired

    Heading of the payment method section.

    string
  • cardEndingRequired

    Builds the selected card line from its brand and last four digits.

    (brand: string, last4: string) => string
  • changeRequired

    Button that opens the card picker.

    string
  • declinedRequired

    Builds the decline message from the card's brand and last four digits.

    (brand: string, last4: string) => string
  • chooseCardRequired

    Prompt shown while the card picker is open.

    string
  • addCardRequired

    Button that adds a new card.

    string
  • declinedBadgeRequired

    Badge on a card that was declined.

    string
  • subtotalRequired

    Builds the subtotal row label and cycle tabs label from the cycle.

    (cycle: BillingCycle) => string
  • discountRequired

    Discount row label for the yearly cycle.

    string
  • taxRequired

    Tax row label.

    string
  • dueTodayRequired

    Label of the amount charged now.

    string
  • subscribeRequired

    Subscribe button text.

    string
  • processingRequired

    Subscribe button text while the card is charged.

    string
  • subscribedRequired

    Subscribe button text once the charge succeeds.

    string
  • declinedButtonRequired

    Subscribe button text when the card is declined.

    string
  • finePrintRequired

    Small print under the subscribe button.

    string
  • welcomeRequired

    Builds the receipt heading from the plan name.

    (plan: string) => string
  • receiptSentRequired

    Builds the receipt note from the customer's email.

    (email: string) => string
  • receiptPlanRequired

    Receipt row label for the plan.

    string
  • receiptPaidWithRequired

    Receipt row label for the card charged.

    string
  • receiptNextRequired

    Receipt row label for the next payment date.

    string
  • receiptInvoiceRequired

    Receipt row label for the invoice link.

    string
  • downloadInvoiceRequired

    Text of the invoice download link.

    string
  • goToDashboardRequired

    Text of the receipt's dashboard button.

    string

Checkout flow

Three steps that collapse into one-line recaps as you finish them, a live card preview, a sticky summary whose totals roll as quantities, delivery, and discount codes change, and a receipt that prints out after payment.

Checkout

Payments are encrypted and processed securely.

1

Contact & shipping

2

Delivery

3

Payment

"use client";

import { CheckoutFlow } from "@/components/premium/checkout-pages";

export function CheckoutFlowPreview() {
  return <CheckoutFlow />;
}

Install

$ bunx --bun shadcn add @beui-pro/checkout-flow

API Reference

Every prop is optional unless marked required. Data, copy, and colors default to the sample content.

CheckoutFlow9 props
  • items

    Starting cart lines, read once on mount. Defaults to the sample cart.

    readonly CommerceCartItem[]
  • deliveryOptions

    Delivery choices; the first one starts selected.

    readonly DeliveryOption[]
  • coupons

    Codes the discount field accepts.

    readonly Coupon[]
  • defaultAddress

    Starting contact and shipping details, read once on mount.

    ShippingAddress
  • labels

    Text overrides merged over the default labels.

    Partial<CheckoutLabels>
  • continueHref

    Link for the receipt's continue button.

    string

    Default #shop

  • merchant

    Store name and address printed at the top of the receipt.

    { name: string; detail?: string; }
  • onPlaceOrder

    Charge the order; resolve with an order number, or reject to show the error state.

    ((request: PlaceOrderRequest) => unknown)
  • className

    Classes merged onto the root element.

    string
Types7 types

The object types these props take, field by field.

CommerceCartItem4 fields
  • idRequired

    Unique line key used to update or remove the item.

    string
  • productRequired

    Product in this cart line.

    CommerceProduct
  • quantityRequired

    Units of the product, clamped between 1 and the product stock.

    number
  • option

    Chosen variant shown under the name; falls back to the category.

    string
ShippingAddress6 fields
  • emailRequired

    Contact email for the order.

    string
  • nameRequired

    Recipient's full name.

    string
  • addressRequired

    Street address line.

    string
  • cityRequired

    City or town.

    string
  • postalCodeRequired

    Postal or ZIP code; needs at least 3 characters.

    string
  • countryRequired

    Country code from the country list, such as "US".

    string
DeliveryOption5 fields
  • idRequired

    Unique option id, sent as `deliveryId` with the order.

    string
  • labelRequired

    Option name, such as "Express".

    string
  • windowRequired

    Business days, such as "5–7 business days".

    string
  • daysRequired

    Days from today to the latest arrival, for the date estimate.

    number
  • priceRequired

    Price in minor currency units.

    number
Coupon4 fields
  • codeRequired

    Code the shopper types to apply the coupon.

    string
  • labelRequired

    Description shown once the coupon is applied.

    string
  • percent

    Percentage off the subtotal, from 0 to 1.

    number
  • freeShipping

    Waives the delivery price.

    boolean
PlaceOrderRequest5 fields
  • itemsRequired

    Cart lines with their current quantities.

    CommerceCartItem[]
  • addressRequired

    Contact and shipping details from the first step.

    ShippingAddress
  • deliveryIdRequired

    Id of the chosen delivery option.

    string
  • couponRequired

    Applied coupon code, or null when none.

    string | null
  • totalRequired

    Total in minor currency units.

    number
CheckoutLabels23 fields
  • titleRequired

    Page heading and accessible label.

    string
  • secureRequired

    Security note under the heading.

    string
  • stepsRequired

    Title of each checkout step.

    Record<CheckoutStepId, string>
  • continueRequired

    Button that finishes a step and opens the next.

    string
  • editRequired

    Button that reopens a finished step.

    string
  • summaryRequired

    Heading of the order summary.

    string
  • subtotalRequired

    Subtotal row label.

    string
  • discountRequired

    Discount row label, and the receipt's fallback when no code applies.

    string
  • shippingRequired

    Delivery row label in the summary and receipt.

    string
  • taxRequired

    Tax row label.

    string
  • totalRequired

    Total row label in the summary.

    string
  • freeRequired

    Price text for free delivery.

    string
  • couponRequired

    Placeholder and accessible label of the discount code field.

    string
  • applyRequired

    Button that applies the discount code.

    string
  • invalidCouponRequired

    Error shown when the discount code does not match.

    string
  • placeOrderRequired

    Builds the pay button text from the formatted total.

    (total: string) => string
  • placingRequired

    Pay button text while the order is charged.

    string
  • placedRequired

    Pay button text once the order is paid.

    string
  • sameAsShippingRequired

    Checkbox label for using the shipping address for billing.

    string
  • thanksRequired

    Heading on the receipt after the order is placed.

    string
  • orderNumberRequired

    Order number label; not currently shown anywhere.

    string
  • arrivesRequired

    Text before the estimated arrival date.

    string
  • continueShoppingRequired

    Text of the receipt's continue button.

    string
CommerceProduct10 fields
  • idRequired

    Unique product key.

    string
  • nameRequired

    Product name shown on cards, in the cart, and at checkout.

    string
  • descriptionRequired

    Short product copy shown on the detail view.

    string
  • categoryRequired

    Category used for grid filter tabs and shown above the name.

    string
  • priceRequired

    Price in minor currency units (for example, cents for USD).

    number
  • imageRequired

    Main image URL used on cards and in the cart.

    string
  • imageAltRequired

    Alt text for the main image.

    string
  • images

    Gallery images for the detail view; falls back to the main image.

    readonly { src: string; alt: string }[]
  • stockRequired

    Units available; caps quantity and shows sold out at 0.

    number
  • label

    Optional badge shown over the product image, such as "Bestseller".

    string

Shared parts

Components and types this folder exports that no single variant installs on its own.

HoloCard6 props
  • cardRequired

    Card whose brand, digits, holder, expiry and finish are printed.

    SavedCard
  • layoutId

    Shared layout id, so the card morphs between the stage, picker and receipt.

    string
  • interactive

    Follow the pointer with foil, glare and a slight tilt.

    boolean

    Default true

  • bare

    Foil only, for thumbnails too small to print the card's details.

    boolean

    Default false

  • radius

    Corner radius in pixels, kept in style so layout morphs keep it round.

    number

    Default 16

  • className

    Classes merged onto the root element.

    string