lomi.
lomi. UI

Checkout summary card

Dark hosted-checkout product summary panel from the left checkout column.

Checkout summary card

Matches the dark left panel in hosted checkout (product-display-section.tsx and line-items-display.tsx).

Preview

Installation

Install to your codebase

Copy the component source with shadcn.

npx shadcn@latest add https://docs.lomi.africa/r/checkout-summary-card.json

Usage

import { CheckoutSummaryCard } from '@/components/lomi-ui/checkout-summary-card';

<CheckoutSummaryCard
  title="Pay for Design workshop"
  currency="XOF"
  description="A full-day workshop covering product design fundamentals."
  subtotal={10000}
  total={10000}
/>;

Props

PropTypeDescription
titlestringProduct or payment link title.
itemsCheckoutSummaryItem[]Optional line items. More than one switches to cart layout.
subtotalnumberAmount before fees and discounts.
feesnumber | CheckoutSummaryFee[]Optional fees as a total or named rows.
discountnumberOptional discount amount.
totalnumberFinal amount due today.
currencystringISO currency code displayed beside amounts.
descriptionstringOptional product description under the price.

On this page