lomi.
Lomi UIComponents

Mobile Money Checkout Card

A focused checkout card for Wave, MTN, Orange Money, and SPI.

Mobile Money Checkout Card

Use this as the main payment panel for a lightweight checkout flow.

Preview

Pay Keur Studio

12 500 F CFA

Checkout

Secured by lomi. Your customer confirms the payment with their provider.

Installation

Install to your codebase

Copy the component source with shadcn.

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

Usage

import { MobileMoneyCheckoutCard } from '@/components/lomi-ui/mobile-money-checkout-card';

<MobileMoneyCheckoutCard
  amount={12500}
  currency="XOF"
  merchantName="Keur Studio"
  selectedProvider="wave"
  phoneNumber="+225 07 00 00 00 00"
  onSubmit={() => createCheckoutSession()}
/>;

Props

PropTypeDescription
amountnumberAmount to display.
currencystringISO currency code, for example XOF.
merchantNamestringMerchant or product name shown at the top.
selectedProviderProviderIdCurrent provider selection.
phoneNumberstringControlled phone input value.
onProviderChange(provider: ProviderId) => voidFired when the customer changes provider.
onPhoneNumberChange(phoneNumber: string) => voidFired when the phone field changes.
onSubmit() => voidFired when the customer taps pay.
loadingbooleanShows the loading state on the pay button.

Sur cette page