-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to validate webhooks!! #1252
Comments
You need to verify the Hmac hash to confirm that it's from Shopify. You can add this function as Express middleware: validateWebhookRequest.js
server.js
|
I think you can use this function the validateHmac function from shopify-api-js |
Can someone fro Shopify confirm either of these work? I'm confused why the template would have broken implementation. Update: This seems to be an invalid approach since this method looks for query params and not header, as specified in the webhook specs. The middleware suggested further up also breaks over changes to shopify API. I've finally landed on something that works with this middleware:
Thanks to GPT 4 for helping me out of this mess. |
Hi Sir/Maam I am new to Shopify App Development, I had devloped my app, and add all the required Webhooks.
After Clicking "Manage Submission" I filled the little requirements and then I am stuck in
Check is in progress. You can leave this page while it's running, if it takes more than a few minutes. Configured mandatory compliancewebhooks. (Ok working) I am stuck in Implement an HMAC Signature to verify webhooks. (X Not working), please someone guide me, it will be more thankful. |
Hi Sir/Maam I am new to Shopify App Development, I had devloped my app, and add all the required Webhooks.
After Clicking "Manage Submission" I filled the little requirements and then I am stuck in
Check is in progress. You can leave this page while it's running, if it takes more than a few minutes. Configured mandatory compliancewebhooks. (Ok working) I am stuck in Implement an HMAC Signature to verify webhooks. (X Not working), please someone guide me, it will be more thankful. |
Hi Sir/Maam I am new to Shopify App Development, I had devloped my app, and add all the required Webhooks.
After Clicking "Manage Submission" I filled the little requirements and then I am stuck in
Check is in progress. You can leave this page while it's running, if it takes more than a few minutes. Configured mandatory compliancewebhooks. (Ok working) I am stuck in Implement an HMAC Signature to verify webhooks. (X Not working), please someone guide me, it will be more thankful. |
Getting same error with working webhooks via cli. Let me know if you fix. I was reading around and you need hmac verification on install page. I implemented that and still errors. |
Sir I am using Remix framework for Shopify App Development. In which we are using either loader or action function for the post or I think there is no middle ware in Remix. Kindly assist me on this, it will be more thankful. |
Has anyone been able to resolve this issue. |
I submitted my app for review. They rejected it saying that the shop/redact webhook should return status 401 if the request isn't made from Shopify.
Please guide me through it.
app.post('/webhooks/shop/redact',async (req,res)=>{
res.status(200).send({message:'Updated'})
})
The text was updated successfully, but these errors were encountered: