#ronman

1 messages · Page 1 of 1 (latest)

summer marsh
#

Hello @idle lance! sorry i don't really understand the question, could you elaborate on the issue and what is the expected behaviour?

#

do you mean that if your code has an error while processing the webhook event, what's the best way to handle it? You should probably log the error and store the raw payload for later processing

idle lance
#

Meanwhile, the Stripe Console records the webhook as hunky-dory, all OK. I was thinking it would be nice if errors were synchronized somehow so that they show up in both places.

burnt storm
#

@idle lance just to make it easier, please keep the questions in the thread open when you have an active one (just realized you were in 3 separate threads :p)

summer marsh
#

there's a distinction between errors with processing and errors with webhook delivery. The Stripe console cares about errors with webhook delivery and will attempt to resend events if an error response is received.

If the problem is with your processing, returning an error to Stripe would mean that you will need to deal with duplicate events (Stripe attempting to resend the event). This would unnecessarily complicate your post exception handling.

idle lance
burnt storm
#

totally fine to have more follow up questions so for now if you do ask them here and @summer marsh can help!

idle lance
#

Oh, I thought since they were different topics it would be confusing to keep them all on one thread. Not so, apparently?

summer marsh
#

it's fine to keep them all in one thread 😄 . We'd generally start a new thread if the old thread has already been archived.