MobileElement
A phone number field for EcoCash or O’mari. Pay with confirmMobilePayment().
export interface MobileElement extends PesepayElementBase<ContactElementEventMap, MobileElementOptions>Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
elementType | "mobile" | Always "mobile". |
Events
Section titled “Events”Listen with on(), once() or off(), by event name. Each handler receives the event’s payload.
| Event | Payload | Description |
|---|---|---|
change | ContactChangeEvent | The input changed, with the current step. |
blur | ElementBlurEvent | A field lost focus. |
escape | ElementEscapeEvent | The customer pressed Escape. |
focus | ElementFocusEvent | A field gained focus. |
loaderror | ElementLoadErrorEvent | The element could not load. |
ready | ElementReadyEvent | The element has rendered. |
status | ElementStatusEvent | Sent only by the mobile and payment elements, as a mobile money payment progresses. |
Also has everything PesepayElementBase has.