Afternoon All,
Can someone tell me how to do the following properly please?
- Create a checkout
- Add a payment
- Complete the checkout
- Display the order
I’m finding the API docs confusing, and sometimes missing. My process so far:
- I started my integration using the REST Admin API to get my product data.
- I then found I needed to create a private app and convert it to a Sales Channel in order to get access to the checkouts endpoint.
- When I tried to add a Stripe payment to a checkout I was denied access.
- When I requested access I was told by “Rubina C. (Shopify Apps Team)” that the Sales Channel was not for me. I should use the Storefront API and switch to GraphQL.
- I switched and recreated my checkout. Now there is no documentation for adding a payment and completing a checkout using Storefront and GraphQL. The docs here https://help.shopify.com/en/api/custom-storefronts/storefront-api/guides/checkout-guide#completing-the-checkout instruct me to send customers to the Shopify WebURL (!).
I just want to create a checkout, add a payment, complete the checkout, and display the order. Bread and butter stuff. Can someone clarify on how to do this please?
Many Thanks,
David
p.s. I found “checkoutCompleteWithTokenizedPaymentV2” using the GraphiQL.app and my storefront endpoint but I get “CheckoutCompleteWithTokenizedPaymentV2 access denied” when running this mutation. Nothing in the docs for it, just a vague reference in a forum post here https://ecommerce.shopify.com/c/api-announcements/t/stay-up-to-date-with-the-storefront-api-changes-548257