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>Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
elementType | "scan" | Always "scan". |
Events
Section titled “Events”Listen with on(), once() or off(), by event name. Each handler receives the event’s payload.
| Event | Payload | Description |
|---|---|---|
blur | ElementBlurEvent | A field lost focus. |
change | BaseChangeEvent | The input changed. |
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. |
Also has everything PesepayElementBase has.