#dirty dishes
1 messages · Page 1 of 1 (latest)
You would have to implement something like a loading spinner that waits for the webhook before loading the page in that case, as I don't think you can delay the redirect.
ok. Is this the same case for the checkout webhook also? I was reading some stack overflow answer yesterday that says the checkout api will wait until the checkout webhook returned successfully
It's the same with Checkout, as the redirect happens (usually) before the webhook fires
ok I'm a bit confused. This doc: https://stripe.com/docs/payments/checkout/fulfill-orders#webhooks
has a blurb that says "Your webhook endpoint redirects your customer to the success_url when you acknowledge you received the event."
my understanding is that means the redirect will only happen after I return 200 from my webhoook
Hmmm, that's news to me, but there it is in plain english. Let me dig a moment and circle back
Huh, I guess it does. Not sure when that was implemented, but I could've sworn it worked differently than that. Anyway, yeah, so it looks like Checkout might be a good solution for you then, since it relies on the webhook for the redirect to happen.