PaymentElement
Every method the transaction can be paid with, grouped as mobile money, card
and scan to pay. The chosen method shows its fields and the total with its
fee. Pay with confirmPayment(). It renders in your page; card numbers stay
in Pesepay’s or the card provider’s frames.
export interface PaymentElement extends PesepayElementBase<PaymentElementEventMap, PaymentElementOptions>Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
elementType | "payment" | Always "payment". |
Events
Section titled “Events”Listen with on(), once() or off(), by event name. Each handler receives the event’s payload.
| Event | Payload | Description |
|---|---|---|
change | PaymentChangeEvent | The chosen method or its fields changed. |
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.