Implement Shopify - #5270
Conversation
|
Here's what to do on Shopify to test end-to-end: Step 1 — Shopify Partner account + dev store
Step 2 — Register the app in the Partner dashboard
For local dev, use ngrok to expose the gateway: Use the ngrok URL as YOUR_GATEWAY above, and set APP_URL=https://xxxx.ngrok.io in shopify-gateway/.env. Step 3 — Install the app on your dev store Visit https://<YOUR_GATEWAY>/shopify/install in your browser. You'll see the cooperative picker form — enter your CoopCycle instance URL, then click through the Shopify OAuth consent screen. If all goes well Step 4 — Deploy the Delivery Customization Function The function must be deployed with Shopify CLI (it compiles JS → Wasm and registers it with Shopify):
CLI will ask you to authenticate and pick the development store. After deployment, the function appears under Settings → Shipping and delivery → Delivery customizations in the Shopify admin. You need to enable Step 5 — Set postal codes and test checkout
|
Fixes #5269