#nickderobertis

1 messages · Page 1 of 1 (latest)

wooden agateBOT
plucky solstice
#

Likely after, but should be very soon after

#

what are you trying to do?

smoky linden
#

I suggested that our FE engineer optimistically update the UI to show that the bill has been paid once we get the Stripe SDK response, rather than waiting on the webhook. But there are some technical limitations on our end that makes that difficult. So we're trying to understand what polling/refetch of the bill would look like. If webhook was always before SDK response we could just fetch once. But it sounds like we would need to poll, but it probably would never need to poll for long

plucky solstice
#

Yes, you might want to have some temporary "payment submitted" state in the front end until you can confirm success via your server.

#

Even without the webhook, though, you can explicitly retrieve the payment intent once to get the latest state, it should already be succeeded

smoky linden
#

That makes sense, thanks. We have our own bill and payment data models and those get updated by the webhook, so unfortunately we can't just look at Stripe details to update the UI. So yeah probably and intermediate state and polling is the best solution then, if we can't get the optimistic update to work.

wooden agateBOT
wooden agateBOT