#taylan - Webhook timeout
1 messages · Page 1 of 1 (latest)
Hi 👋
Can you describe what you are trying to do with your webhooks?
Our docs do point out it i important to quickly return a 200 response once your endpoint has verified the webhook
https://stripe.com/docs/webhooks#acknowledge-events-immediately
Apparently your PHP script is taking too long and you need to return a 200 response faster.
fastcgi_finish_request(); //this returns 200 to the user, and processing continues
are you familiar with php?
A little but the problem isn't php, it's the time it takes for your function to return a response. That is what you need to address.
well let me explain more and why I need it
I fetch data out of stripe and pass it to an application where internal users can interact with it. So I don't trust the data that is there and I reevaluate the payment history
anyway thank you for your help this fastcgi_finish_request function makes everything perfect now I can return status 200 and continue with the process
Okay you need to return a 200 pretty quickly after verifying the Stripe signature.