Skip to content

MobileElement

A phone number field for EcoCash or O’mari. Pay with confirmMobilePayment().

export interface MobileElement extends PesepayElementBase<ContactElementEventMap, MobileElementOptions>
NameTypeDescription
elementType"mobile"Always "mobile".

Listen with on(), once() or off(), by event name. Each handler receives the event’s payload.

EventPayloadDescription
changeContactChangeEventThe input changed, with the current step.
blurElementBlurEventA field lost focus.
escapeElementEscapeEventThe customer pressed Escape.
focusElementFocusEventA field gained focus.
loaderrorElementLoadErrorEventThe element could not load.
readyElementReadyEventThe element has rendered.
statusElementStatusEventSent only by the mobile and payment elements, as a mobile money payment progresses.

Also has everything PesepayElementBase has.