#fundrise_evan
1 messages · Page 1 of 1 (latest)
I believe yes they should, its the delivery order that isn't guaranteed. But, more importantly, what are you trying to do with this?
We're keeping track of the state of a subscription in our DB and when we receive a webhook event, we check to make sure that our state matches Stripe's, and if we're out of sync, we update the state in our DB.
We also do certain things on certain state changes like send out an email when a customer's free trial is ending, send an email when a subscription is successfully canceled, etc.
Gotcha -- what we typically recommend then is using any such event as a signal to retrieve the latest version of the object from the API instead of indexing on the event body directly
The API result will always be the current/now version
ahhh, so upon receiving an event, make a GET request for the current Subscription and use that to track state
Yep, exactly 🙂