Render a secure card form to accept card payments.
This feature of Mollie Components is in private beta.If you are interested in early access you can reach out to us.
checkout.create('card')
checkout.create('card')Creates a Cards Component.
const cardComponent = checkout.create('card');
express.mount('#card-component');Parameters
type 'card' required
type 'card' requiredThe type of component to create.
Methods
.mount(target: string | HTMLElement): Promise<this>
.mount(target: string | HTMLElement): Promise<this>Renders the component into a CSS selector or HTML element. Resolves when the component is ready.
.unmount(): Promise<this>
.unmount(): Promise<this>Tears down and cleans up the component.