#xpass-webhook-subscription
1 messages · Page 1 of 1 (latest)
Hi there! Events shouldn't be expected to arrive in a specific order
I recommend retrieving the subscription after you receive the updated event, and using this to track the subscription status on your end
@hollow bough Copy that!
So on both the "subscription.created" and "subscription.updated" events i'll just add a stripe.subscriptions.retrieve(sub_id) to make sure I have the most up to date data instead of using the data attached to the event, does that sound correct?
I'd do it on subscription.updated if the subscription ID matches one that's already in your database
sorry, the other way around: on subscription.created if the subscription ID matches one that's already in your database
Awesome, makes sense. Thank you!