#Dikgethop - webhooks

1 messages · Page 1 of 1 (latest)

obsidian lotus
#

Hi there!

#

Stripe webhooks don't return anything, it's your server that may return a 200. So I'm a bit confused by your question. Can you clarify what you are tryingnto do?

thorny plover
#

I have an endpoint that receives stripe webhooks, so every time theres a timeout or 200 is returned my database gets updated. Ideally I want to update it once a webhook is 200

obsidian lotus
#

Is it your code that returns a 200 or times out?

thorny plover
#

check this event evt_1LRIeVHQNXaaN7ptnBAMRhOv it has a time out and a success. I'm only interested in the success

obsidian lotus
#

True, what happened here:

  • Stripe sent an event to your server, and your server never sent a reply to Stripe, so we marked the event as "timeout"
  • Stripe re-tried to send the event to your server, and this time your server sent a 200 response to Stripe
#

Since this is your code, it's completely up to you to decide what to do when you return a 200 response (for example store some information in your own database).