#adelvalle

1 messages ยท Page 1 of 1 (latest)

deft boltBOT
shadow nexus
#

๐Ÿ‘‹ happy to help

#

what's up?

errant spire
#

Hello

#

I have a webhook

#

and I dont know why but sometimes when a client pay a product,

#

we get invoice.paid with error and then invoice.paid with success

#

and when the servlet do the 'post' and execute the event twice

#

how can I control if it is a success o an error?

#

we_1MGequK8ASnZKS7JsQav3ALt

#

this is the id of the webhook

shadow nexus
#

will take a look, it might take me a couple of minutes so please bear with me

errant spire
#

ok thanks

glacial fog
#

Hi there ๐Ÿ‘‹ jumping in as my teammate needs to step away soon. The success/failure status you see beside the webhook events there in your screenshot, is determined by status code that your server sends back to us when we send it the Event.

If your server responds with a status in the 2XX range, then that is interpreted as your server successfully receiving the event, while any status outside of that range is interpreted as your webhook endpoint failing to receive the event.
https://stripe.com/docs/webhooks#acknowledge-events-immediately