HostedCardElement
The card provider’s own form, for Mastercard and Zimswitch. It renders in your page; the card number and CVV stay in the provider’s iframes. One per page: creating a second throws.
export interface HostedCardElement extends PesepayElementBase<ElementEventMap, HostedCardElementOptions>Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
elementType | "hostedCard" | Always "hostedCard". |
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.