BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/lomi-ui/mobile-money-checkout-card

Mobile money checkout card

lomi-ui/mobile-money-checkout-card
FreeBlock

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

Install it

npx shadcn@latest add https://raw.githubusercontent.com/lomiafrica/lomi./main/apps/docs/public/r/mobile-money-checkout-card.json

Source

components/lomi-ui/mobile-money-checkout-card.tsxraw.githubusercontent.com/lomiafrica/lomi./main/apps/docs/public/r/mobile-money-checkout-card.json
1'use client';
2
3import * as React from 'react';
4import {
5 PaymentProviderSelector,
6 type ProviderId,
7} from './payment-provider-selector';
8import { CustomerInformationSection } from './customer-information-section';
9import {
10 CheckoutSubmitButton,
11 type CheckoutPaymentStatus,
12} from './checkout-submit-button';
13import './lib/checkout-ui.css';
14
15export interface MobileMoneyCheckoutCardProps {
16 selectedProvider?: ProviderId;
17 fullName?: string;
18 email?: string;
19 phoneNumber?: string;
20 whatsappNumber?: string;
21 isDifferentWhatsApp?: boolean;
22 onProviderChange?: (provider: ProviderId) => void;
23 onFullNameChange?: (value: string) => void;
24 onEmailChange?: (value: string) => void;
25 onPhoneNumberChange?: (value?: string) => void;
26 onWhatsAppNumberChange?: (value?: string) => void;
27 onDifferentWhatsAppChange?: (value: boolean) => void;
28 onSubmit?: () => void;
29 paymentStatus?: CheckoutPaymentStatus;
30 payButtonBgColor?: string;
31 className?: string;
32}
33
34function cn(...classes: Array<string | false | null | undefined>) {
35 return classes.filter(Boolean).join(' ');
36}
37
38export function MobileMoneyCheckoutCard({
39 selectedProvider,
40 fullName = '',
41 email = '',
42 phoneNumber = '',
43 whatsappNumber = '',
44 isDifferentWhatsApp = false,
45 onProviderChange,
46 onFullNameChange,
47 onEmailChange,
48 onPhoneNumberChange,
49 onWhatsAppNumberChange,
50 onDifferentWhatsAppChange,
51 onSubmit,
52 paymentStatus = 'idle',
53 payButtonBgColor = '#121317',
54 className,
55}: MobileMoneyCheckoutCardProps) {
56 return (
57 <div
58 className={cn(
59 'lomi-checkout-ui w-full max-w-md space-y-3 bg-white',
60 className,
61 )}
62 >
63 <PaymentProviderSelector
64 providers={['WAVE', 'MTN', 'cards', 'spi']}
65 selectedProvider={selectedProvider}
66 onProviderChange={onProviderChange}
67 />
68
69 <CustomerInformationSection
70 fullName={fullName}
71 email={email}
72 phoneNumber={phoneNumber}
73 whatsappNumber={whatsappNumber}
74 isDifferentWhatsApp={isDifferentWhatsApp}
75 onFullNameChange={onFullNameChange}
76 onEmailChange={onEmailChange}
77 onPhoneNumberChange={onPhoneNumberChange}
78 onWhatsAppNumberChange={onWhatsAppNumberChange}
79 onDifferentWhatsAppChange={onDifferentWhatsAppChange}
80 />
81
82 <CheckoutSubmitButton
83 payButtonBgColor={payButtonBgColor}
84 paymentStatus={paymentStatus}
85 onClick={onSubmit}
86 />
87 </div>
88 );
89}

What it pulls in

npm packages

  • lucide-react
  • react-phone-number-input

Facts

Registry
lomi-ui
Type
registry:block
Access
Free
Files written
0
Licence
NOASSERTION
First indexed
2026-08-01
Last confirmed
3 days ago

Go to the source

lomi.africa lomiafrica/lomi. on GitHub Raw registry item This item as JSON

More from lomi-ui

All 6 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Checkout summary cardcheckout-summary-cardlomi-uiBlocksFreeno deps
Customer information sectioncustomer-information-sectionlomi-uiBlocksFree2 deps
Payment provider selectorpayment-provider-selectorlomi-uiBlocksFreeno deps
Price selectorprice-selectorlomi-uiBlocksFreeno deps
Usage meterusage-meterlomi-uiBlocksFreeno deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex