Skip to content

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>
NameTypeDescription
elementType"checkout"Always "checkout".

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

EventPayloadDescription
changeCheckoutChangeEventThe chosen method or its fields changed.
blurElementBlurEventA field lost focus.
escapeElementEscapeEventThe customer pressed Escape.
finishedCheckoutFinishedEventSent only by the checkout element, once its payment has ended.
focusElementFocusEventA field gained focus.
loaderrorElementLoadErrorEventThe element could not load.
readyElementReadyEventThe element has rendered.

Also has everything PesepayElementBase has.