Render a secure card form to accept card payments.
Our new version of Mollie Components is in private beta.If you are interested in early access you can reach out to us. Looking to embed a card form with Mollie.JS V1? See Embedding a card form.
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.