Show a list of payment methods to your customer.
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('methods-component')
checkout.create('methods-component')Creates a Methods Component.
const methodsComponent = checkout.create('methods-component');
express.mount('#methods-component');Parameters
type 'methods-component' required
type 'methods-component' 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.