Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
Hi Shopify team,
I'm building an iOS app that uses the Buy SDK to connect with the Storefront APi. When making the checkoutCompleteWithCreditCardV2 mutation query, I'm getting an invalid query error with reason
"Access denied for checkoutCompleteWithCreditCardV2 field. Required access: `unauthenticated_write_checkouts` access scope." However on the admin dashboard for the custom app that I created, I can see unauthenticated_write_checkouts was already enabled.
After searching other answers, I think this may be due to the app not being a sales channel? But I have a custom app, and I wasn't able to find any docs on how to turn a custom app into a sales channel.
Any help here would be much appreciated 🙂 For reference, the checkout id that I tested with is
gid://shopify/Checkout/5dd6ae082a1833b7423aea6bdd0911e4?key=e374f84ed658051d460741bbd9085af5