Stripe Webhooks: Return 200 status code
Budget: $10 – $30 USD
I need to run a block of code inside a stripe webhook.
Explanation:
When an event is triggered (a user buy, for example), Stripe sends a request to your webhook.
They wait about 20 seconds to get an 200 status response. If your webhook doesn't answer the request or takes longer than 20 seconds, it's an ERROR.
The problem is that I'm doing a request to an API that can last up to 5 minutes. Sometimes it responds in less than 20 seconds, but other times does not.
-
What I need:
I need to run my code (API Request, that takes about 5 minutes to respond), but still get an 200 status code in Stripe.
Can you help me?
-
Documentation: https://stripe.com/docs/webhooks/quickstart
Explanation:
When an event is triggered (a user buy, for example), Stripe sends a request to your webhook.
They wait about 20 seconds to get an 200 status response. If your webhook doesn't answer the request or takes longer than 20 seconds, it's an ERROR.
The problem is that I'm doing a request to an API that can last up to 5 minutes. Sometimes it responds in less than 20 seconds, but other times does not.
-
What I need:
I need to run my code (API Request, that takes about 5 minutes to respond), but still get an 200 status code in Stripe.
Can you help me?
-
Documentation: https://stripe.com/docs/webhooks/quickstart