Checkout Pages
2 variantsCheckout 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
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 />;
}
Source code is locked
Get access to install premium components and view the full source.
Open dashboardInstall
API Reference
Every prop is optional unless marked required. Data, copy, and colors default to the sample content.
SubscribeCheckout10 props
planPlan being bought. Defaults to the sample plan.
SubscribePlancardsStarting saved cards, read once on mount; the first starts selected.
readonly SavedCard[]defaultEmailStarting value of the email field.
stringDefault
rhea@lumen.studiodefaultCycleBilling cycle selected at first. Defaults to yearly.
"monthly" | "yearly"Default
yearlylabelsText overrides merged over the default labels.
Partial<SubscribeLabels>invoiceHrefLink for the receipt's invoice download.
stringDefault
#invoicedashboardHrefLink for the receipt's dashboard button.
stringDefault
#dashboardonSubscribeCharge the card; reject to decline it and open the card picker.
((request: SubscribeRequest) => unknown)onAddCardSave a new card; resolve once it can be charged.
((card: NewCardRequest) => unknown)classNameClasses merged onto the root element.
string
Types4 types
The object types these props take, field by field.
SavedCard7 fields
idRequiredUnique card id, sent as `cardId` when subscribing.
stringbrandRequiredCard network, which sets the wordmark printed on the card.
CardBrandlast4RequiredLast four digits printed on the card and in its label.
stringexpiryRequiredTwo-digit month and year, such as "08/28".
stringholderRequiredCardholder name printed on the card.
stringfinishRequiredFoil the card face is printed in.
HoloFinishdeclinesDemo only: charging this card is declined.
boolean
SubscribePlan5 fields
nameRequiredPlan name shown in the title and receipt.
stringmonthlyRequiredPrice per month in minor units, billed monthly.
numberyearlyDiscountRequiredDiscount on the yearly price, from 0 to 1.
numbertaxRateRequiredTax rate from 0 to 1.
numberfeaturesRequiredFeature lines listed under the price.
readonly string[]
SubscribeRequest3 fields
cardIdRequiredId of the card to charge.
stringcycleRequiredBilling cycle the customer chose.
BillingCycletotalRequiredAmount due today in minor currency units.
number
SubscribeLabels30 fields
titleRequiredBuilds the plan heading and accessible label from the plan name.
(plan: string) => stringmonthlyRequiredMonthly tab text and receipt cycle name.
stringyearlyRequiredYearly tab text and receipt cycle name.
stringperMonthRequiredText after the price on the monthly cycle.
stringperYearRequiredText after the price on the yearly cycle.
stringemailRequiredLabel of the email field.
stringpaymentMethodRequiredHeading of the payment method section.
stringcardEndingRequiredBuilds the selected card line from its brand and last four digits.
(brand: string, last4: string) => stringchangeRequiredButton that opens the card picker.
stringdeclinedRequiredBuilds the decline message from the card's brand and last four digits.
(brand: string, last4: string) => stringchooseCardRequiredPrompt shown while the card picker is open.
stringaddCardRequiredButton that adds a new card.
stringdeclinedBadgeRequiredBadge on a card that was declined.
stringsubtotalRequiredBuilds the subtotal row label and cycle tabs label from the cycle.
(cycle: BillingCycle) => stringdiscountRequiredDiscount row label for the yearly cycle.
stringtaxRequiredTax row label.
stringdueTodayRequiredLabel of the amount charged now.
stringsubscribeRequiredSubscribe button text.
stringprocessingRequiredSubscribe button text while the card is charged.
stringsubscribedRequiredSubscribe button text once the charge succeeds.
stringdeclinedButtonRequiredSubscribe button text when the card is declined.
stringfinePrintRequiredSmall print under the subscribe button.
stringwelcomeRequiredBuilds the receipt heading from the plan name.
(plan: string) => stringreceiptSentRequiredBuilds the receipt note from the customer's email.
(email: string) => stringreceiptPlanRequiredReceipt row label for the plan.
stringreceiptPaidWithRequiredReceipt row label for the card charged.
stringreceiptNextRequiredReceipt row label for the next payment date.
stringreceiptInvoiceRequiredReceipt row label for the invoice link.
stringdownloadInvoiceRequiredText of the invoice download link.
stringgoToDashboardRequiredText 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.
Contact & shipping
Delivery
Payment
"use client";
import { CheckoutFlow } from "@/components/premium/checkout-pages";
export function CheckoutFlowPreview() {
return <CheckoutFlow />;
}
Source code is locked
Get access to install premium components and view the full source.
Open dashboardInstall
API Reference
Every prop is optional unless marked required. Data, copy, and colors default to the sample content.
CheckoutFlow9 props
itemsStarting cart lines, read once on mount. Defaults to the sample cart.
readonly CommerceCartItem[]deliveryOptionsDelivery choices; the first one starts selected.
readonly DeliveryOption[]couponsCodes the discount field accepts.
readonly Coupon[]defaultAddressStarting contact and shipping details, read once on mount.
ShippingAddresslabelsText overrides merged over the default labels.
Partial<CheckoutLabels>continueHrefLink for the receipt's continue button.
stringDefault
#shopmerchantStore name and address printed at the top of the receipt.
{ name: string; detail?: string; }onPlaceOrderCharge the order; resolve with an order number, or reject to show the error state.
((request: PlaceOrderRequest) => unknown)classNameClasses merged onto the root element.
string
Types7 types
The object types these props take, field by field.
CommerceCartItem4 fields
idRequiredUnique line key used to update or remove the item.
stringproductRequiredProduct in this cart line.
CommerceProductquantityRequiredUnits of the product, clamped between 1 and the product stock.
numberoptionChosen variant shown under the name; falls back to the category.
string
ShippingAddress6 fields
emailRequiredContact email for the order.
stringnameRequiredRecipient's full name.
stringaddressRequiredStreet address line.
stringcityRequiredCity or town.
stringpostalCodeRequiredPostal or ZIP code; needs at least 3 characters.
stringcountryRequiredCountry code from the country list, such as "US".
string
DeliveryOption5 fields
idRequiredUnique option id, sent as `deliveryId` with the order.
stringlabelRequiredOption name, such as "Express".
stringwindowRequiredBusiness days, such as "5–7 business days".
stringdaysRequiredDays from today to the latest arrival, for the date estimate.
numberpriceRequiredPrice in minor currency units.
number
Coupon4 fields
codeRequiredCode the shopper types to apply the coupon.
stringlabelRequiredDescription shown once the coupon is applied.
stringpercentPercentage off the subtotal, from 0 to 1.
numberfreeShippingWaives the delivery price.
boolean
PlaceOrderRequest5 fields
itemsRequiredCart lines with their current quantities.
CommerceCartItem[]addressRequiredContact and shipping details from the first step.
ShippingAddressdeliveryIdRequiredId of the chosen delivery option.
stringcouponRequiredApplied coupon code, or null when none.
string | nulltotalRequiredTotal in minor currency units.
number
CheckoutLabels23 fields
titleRequiredPage heading and accessible label.
stringsecureRequiredSecurity note under the heading.
stringstepsRequiredTitle of each checkout step.
Record<CheckoutStepId, string>continueRequiredButton that finishes a step and opens the next.
stringeditRequiredButton that reopens a finished step.
stringsummaryRequiredHeading of the order summary.
stringsubtotalRequiredSubtotal row label.
stringdiscountRequiredDiscount row label, and the receipt's fallback when no code applies.
stringshippingRequiredDelivery row label in the summary and receipt.
stringtaxRequiredTax row label.
stringtotalRequiredTotal row label in the summary.
stringfreeRequiredPrice text for free delivery.
stringcouponRequiredPlaceholder and accessible label of the discount code field.
stringapplyRequiredButton that applies the discount code.
stringinvalidCouponRequiredError shown when the discount code does not match.
stringplaceOrderRequiredBuilds the pay button text from the formatted total.
(total: string) => stringplacingRequiredPay button text while the order is charged.
stringplacedRequiredPay button text once the order is paid.
stringsameAsShippingRequiredCheckbox label for using the shipping address for billing.
stringthanksRequiredHeading on the receipt after the order is placed.
stringorderNumberRequiredOrder number label; not currently shown anywhere.
stringarrivesRequiredText before the estimated arrival date.
stringcontinueShoppingRequiredText of the receipt's continue button.
string
CommerceProduct10 fields
idRequiredUnique product key.
stringnameRequiredProduct name shown on cards, in the cart, and at checkout.
stringdescriptionRequiredShort product copy shown on the detail view.
stringcategoryRequiredCategory used for grid filter tabs and shown above the name.
stringpriceRequiredPrice in minor currency units (for example, cents for USD).
numberimageRequiredMain image URL used on cards and in the cart.
stringimageAltRequiredAlt text for the main image.
stringimagesGallery images for the detail view; falls back to the main image.
readonly { src: string; alt: string }[]stockRequiredUnits available; caps quantity and shows sold out at 0.
numberlabelOptional 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
cardRequiredCard whose brand, digits, holder, expiry and finish are printed.
SavedCardlayoutIdShared layout id, so the card morphs between the stage, picker and receipt.
stringinteractiveFollow the pointer with foil, glare and a slight tilt.
booleanDefault
truebareFoil only, for thumbnails too small to print the card's details.
booleanDefault
falseradiusCorner radius in pixels, kept in style so layout morphs keep it round.
numberDefault
16classNameClasses merged onto the root element.
string