CheckoutElement
The payment element with its own Pay button. It runs every step itself: the
O’mari code, the wait for an EcoCash approval or a scanned code, and the
result when the customer comes back from 3-D Secure or the card form.
Listen for finished. It is not passed to confirmPayment().
export interface CheckoutElement extends PesepayElementBase<CheckoutElementEventMap, CheckoutElementOptions>Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
elementType | "checkout" | Always "checkout". |
Events
Section titled “Events”Listen with on(), once() or off(), by event name. Each handler receives the event’s payload.
| Event | Payload | Description |
|---|---|---|
change | CheckoutChangeEvent | The chosen method or its fields changed. |
blur | ElementBlurEvent | A field lost focus. |
escape | ElementEscapeEvent | The customer pressed Escape. |
finished | CheckoutFinishedEvent | Sent only by the checkout element, once its payment has ended. |
focus | ElementFocusEvent | A field gained focus. |
loaderror | ElementLoadErrorEvent | The element could not load. |
ready | ElementReadyEvent | The element has rendered. |
Also has everything PesepayElementBase has.