Integrate Shopify in your Strapi application.
Build a Shopify application with Strapi.
Strapi v4 is required.
npm install --save strapi-plugin-shopify
Webhooks are authenticated with HMAC calculated on the raw body,
strapi::body middleware should be configured to pass the unparsed body as following:
If you want to serve an embedded app directly from Strapi you will find that default CSP policies will not allow to do that,
strapi::security middleware should be configured as following (this configuration should be used only if you have problem with the embedded app iframe):
The Shopify application should be configured as follow:
This plugin needs the following environment variables to work:
|the host name of your app without the protocol (http or https)
|the API key generated by Shopify
|the API secret generated by Shopify
|the API scopes used by the application
|whether the app is an embedded app or not
|the url where the user is redirect after authentication
This are the endpoints exposed by this plugin:
|the entry point of the application, it handles installation and authentication
|the default webhooks endpoint called by Shopify
|the installation endpoint, should not be called directly, use /api/shopify instead
|the installation callback endpoint, should be called only by Shopify
|the authentication endpoint, should not be called directly, use /api/shopify instead
|the authentication callback endpoint, should be called only by Shopify
|the logout endpoint, should be called to delete the Shopify session
|this endpoint should be called to get the authenticated shop data
|this endpoint should be called to get available subscription plans
|this endpoint should be called to get the shop subscription
|this endpoint should be called to create a shop subscription
npm install strapi-plugin-shopify
Check out the available plugin resources that will help you to develop your plugin or provider and get it listed on the marketplace.