Components
Learn about the functionality exposed by components
Last updated
Learn about the functionality exposed by components
Last updated
Components are UI building blocks that allow you to create customizable checkout flows that collect information from and present information to customers.
On this page, you'll find information on:
The exposes .
components(configuration)
This function, which accepts a required , creates , which you can use to manage one or more instances.
createComponent(componentType)
mount(elementId)
done()
Refer to .
The components object, which exposes , manages a group of individual instances.
The createComponent()
function, which requires passing a , creates an individual .
The individual component object, which exposes and, in some cases, , allows you to collect information from and present information to customers.
The mount()
function, which requires that you pass the id
of an HTML element, attaches that to your .
The , , , and expose done()
, which submits a customer's data and returns a boolean indicating whether it's valid. For details, refer to: