Closed iFlameing closed 5 years ago
Hello!
Appreciate the question, though this is most likely something handled outside of our plugin. I can try to help you though. A couple thoughts:
1) Where do you have your Gatsby site hosted? If using Netlify (recommended), see this article for information about setting up incoming build webhooks.
2) If you're editing product and sku information in the Stripe dashboard, you'll need to use Stripe webhooks associated with the following events, probably: product.created
, product.deleted
, product.updated
(and the same ones for sku). A full list is here and the Stripe documentation about setting up webhooks is here.
Hope this helps! Let me know if you have any questions.
@njosefbeck thanks for your help. Yes, my site is hosted with Netlify :)
Okay, so with Netlify this should be rather simple!
I didn't read through the documentation too thoroughly, but that should be essentially what you need to do. Hope this helps! Let me know if it works for you.
@njosefbeck After reading the documentation and following your step as mention above I am able to set up. thank you very much for your help and time!
My pleasure! Glad you got it working 👍
Prerequisites
Description
I am trying to implement the retrigger the gatsby develop automatically whenever something changes in headless cms as this feature provided by gatsby-source-stripe. I found that when something changes in the product information on stripe website a webhook is retriggered and gatsby build initiated on the client side. But I didn't find the code which handles this trigger event in the source code. can anyone point out the code where we handle the webhook retrigger please!