Skip to main content

Creating a checkout session

Create a session from the cart and redirect to the hosted checkout:
The hosted checkout handles payment forms, address collection, order creation, and the confirmation page. After payment, the customer is redirected back to your store.

Guest checkout

You can pass a guest email when creating the session:
If the customer is not logged in, the hosted checkout collects their email during the flow.

Next steps