The Checkout
tool in the Storefront API includes the information that's required for a customer to complete checkout and pay for their order.
You can use checkouts to incrementally build and update a draft of the customer's order details before completing the checkout and attempting billing. After a customer's payment is successfully processed, a corresponding order is created in the Shopify admin.
A checkout is used to manage a user's cart as it transitions to a paid order. This process includes specifying which line items are included in the checkout, attaching a customer's shipping and payment details, and calculating tax and shipping rates.
PREREQUISITE:
- You're familiar with querying products and collections.
- You've created products and product variants in your store.
- You've turned your app into a sales channel and requested and been approved for payment processing.
STEPS FOR CHECKOUT: