Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
I want to create order based on checkout. When I'm trying to complete checkout - i'm getting the following error - Cannot complete the checkout without any transactions.
How can I create such transaction and complete the checkout?
Hi @Gooner,
A transaction would be created by either completing the checkout using the web_url field returned when creating the checkout, or systematically adding a payment to the checkout using the Payment API. Once a transaction exists, the order can be completed.
The latter is only possible if your app is a sales channel and has requested payment processing permission, which needs to be approved by Shopify.
Note that you can't use the Checkout API to create a new checkout user experience for an individual store. For that you need to use an SDK that's powered by the Storefront API instead, such as the JavaScript Buy, iOS Buy, and Android Buy SDKs.
Cheers,
To learn more visit the Shopify Help Center or the Community Blog.