CardElement
Card number, expiry and CVC fields for Visa, in a frame on a Pesepay origin. Pay with confirmCardPayment().
export interface CardElement extends PesepayElementBase<CardElementEventMap>Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
elementType | "card" | Always "card". |
Events
Section titled “Events”Listen with on(), once() or off(), by event name. Each handler receives the event’s payload.
| Event | Payload | Description |
|---|---|---|
change | CardChangeEvent | The input changed, with the detected brand. |
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. |
Also has everything PesepayElementBase has.