Checkout
The checkout component displays the checkout page.
Code
The stripe-card-element
and express-checkout-element
slots are required for the checkout component to work.
Props
Props should be passed as attributes to the component element.
Boolean props have a leading dot. This is to allow the boolean props to be passed as attributes to the component element.
Whether to show the forgot password link.
Defaults to false
The message to display to prompt the user to sign in.
Defaults to Checkout faster by signing in and using saved details
The slug of the page to return to when the user clicks the cart icon.
Defaults to /cart
Styling
The following parts are available to style the checkout component:
The spinner element.
The cart icon link element.
The primary action button, normally the “continue” button.
The sidebar element.
The product image element.
The containing <div>
around a product image.
The logo element.
The discount button element.
The highlighted breadcrumb item element.
The input element.
The input checkbox element.
An <a>
element used for links.
The unselected option(s) of a radio group.
For example the “ship” and “pickup” delivery options
The selected option of a radio group.
For example the “ship” and “pickup” delivery options
The select element.
The options for the selected shipping method