#xpass-webhook-subscription

1 messages · Page 1 of 1 (latest)

proud crescentBOT
hollow bough
#

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

tender merlin
#

@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?

hollow bough
#

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

tender merlin
#

Awesome, makes sense. Thank you!