lomi.
Lomi UIComponents

Checkout Summary Card

A dark checkout summary inspired by Lomi hosted checkout.

Checkout Summary Card

Use this beside a payment form or above it on mobile to show what the customer is paying for.

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
  merchantName="Keur Studio"
  currency="XOF"
  items={[{ name: 'Design workshop', quantity: 1, amount: 10000 }]}
  subtotal={10000}
  total={10000}
/>;

Props

PropTypeDescription
merchantNamestringMerchant name displayed in the summary.
items{ name: string; quantity?: number; amount: number }[]Checkout line items.
subtotalnumberAmount before fees and discounts.
feesnumberOptional fees.
discountnumberOptional discount amount.
totalnumberFinal amount due.
currencystringISO currency code.

Sur cette page