PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, June 30, 2022

[FIXED] How to know which store consumed shopify webhook?

 June 30, 2022     shopify, shopify-app, webhooks     No comments   

Issue

I have created a Shopify app which will allow different store owners to download it and to configure different Web-hooks of their choice like "Order Create", "Order Update" etc...

Each and every Web-hooks are getting configured properly and working fine.

But my issue is "how to know that call to web-hook method is made due to action performed by which of the store"

In sort I wanted to know action performed on which store has triggered web-hook method to be executed.


Solution

It's part of the headers and handshake sent by Shopify to your app.

Regardless of the type of webhook you get a header X-Shopify-Shop-Domain that contains the permanent-shop.myshopify.com address of the shop. see



Answered By - bknights
Answer Checked By - Terry (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing