I tested everything on localhost, and it is working fine. I was able to retrieve the session object using the access token. I believe I’m on the right track. However, Shopify automation reported an authentication error during the installation process.
Please refer to the screenshots I provided. I must say that integrating with Shopify is much more challenging compared to WooCommerce. I am genuinely unsure how to find the right documentation for Node.js and GraphQL, or even any helpful YouTube videos.
1 . my requirement is , let the user enters his store url in my MERN website
2 . then perform oauth , in callback i get - access token
3 . with that access token , let the user to create a new product from MERN website to their shopify store
4 . finally , webhook to cretae a new order in sole MERN website , when someone place order in shopify store
above is my complete requirement - i can’t able to find the perfect documentation for my requirement
please help me to completed this process of shopify integration
Hey @Deeprintz
Based on your installation flow, it looks like you’re not quite meeting our installation requirements outlined here: https://shopify.dev/docs/apps/launch/app-requirements-checklist#c-setup-and-merchant-workflows
- Apps must be installed and initiated only on Shopify services. Your app must not request the manual entry of a myshopify.com URL or a shop’s domain during the installation or configuration flow.
The best way to simulate this installation flow on a draft application is to install using the test your app function in the partner dashboard. Selecting here, your app should direct immediately to the oath flow.
The easiest way to implement this is to Enable Shopify-managed installations for your app
If that’s not going to work, you can find further documentation here:
Hey! Are you still running in to issues with the requirements, or can I mark this as solved?
I’m encountering a similar issue while going through the Shopify OAuth flow.
I’ve fully implemented the OAuth process, and it works fine for me in a development/testing environment. However, since our app is not yet verified, we’ve started the verification process—and we’ve run into the same problem described above: Shopify’s automated test immediately authenticates the app after installation, which is blocking our progress.
Here’s a breakdown of our current flow:
- A user logs in and lands in our React app.
- They see a “Connect Shopify” button to initiate the integration.
- Clicking it redirects them to Shopify’s consent screen using the following structure:
https://shopify.com/admin/oauth/authorize
?client_id={client_id}
&scope={scopes}
&redirect_uri={lambda_redirect_url}
&state={state}
- After installation, our server-side endpoint:
- Handles the OAuth callback
- Verifies permissions
- Stores the offline access token for later use via the Shopify Admin API
All of this works when I test manually. But our clients mentioned that they are unable to install the app into their stores due to verification missing. As I get ready for app verification, the automated process fails at Shopify’s automated test immediately authenticates the app after installation. Any help with this?
Hey Jose, the issue looks to be the same. All installations are required to be initiated from the Shopify app store URL. In testing, this is the equivalent of selecting to install on a development store from your partner dashboard.
Just for further clarification, your app will be blocked from installs in any shop outside of your partner development stores so that could also be why merchants are seeing errors. Once your app is approved, merchants can visit your app store URL and install from there.