lomi.
lomi. UI

Mobile money checkout card

Provider selection, customer form, and pay button aligned with hosted checkout.

Mobile money checkout card

Combines the hosted checkout provider carousel, personal information form, and pay button.

Preview

Wave
Wave
MTN
MTN
Card
Card
π—SPI
π—SPI
*
*
*
My WhatsApp number is different

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
  selectedProvider="WAVE"
  fullName="Aya Konan"
  email="aya@example.com"
  phoneNumber="+2250700000000"
  payButtonBgColor="#121317"
  onSubmit={() => createCheckoutSession()}
/>;

Props

PropTypeDescription
selectedProviderProviderIdCurrent provider selection.
fullNamestringCustomer full name.
emailstringCustomer email.
phoneNumberstringCustomer phone number.
onProviderChange(provider: ProviderId) => voidProvider change handler.
onSubmit() => voidPay button click handler.
paymentStatus'idle' | 'processing' | 'success' | 'error'Pay button state.
payButtonBgColorstringPay button background. Defaults to #121317.

On this page