Skip to content

ScanElement

Shows the QR code and short code the customer pays with in the InnBucks or PayGo app. It has no input: it is empty until confirmScanPayment() returns the code.

export interface ScanElement extends PesepayElementBase<ElementEventMap, ScanElementOptions>
NameTypeDescription
elementType"scan"Always "scan".

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

EventPayloadDescription
blurElementBlurEventA field lost focus.
changeBaseChangeEventThe input changed.
escapeElementEscapeEventThe customer pressed Escape.
focusElementFocusEventA field gained focus.
loaderrorElementLoadErrorEventThe element could not load.
readyElementReadyEventThe element has rendered.

Also has everything PesepayElementBase has.