#mentijm-Subscription

1 messages · Page 1 of 1 (latest)

wanton shoal
#

Unfortunately for webhook events happens at almost same time, we can't guarantee their order to come. Even if we try to send them in an order, they can be affected by network conditions between Stripe and your server. It comes down to what do you want to achieve? If you want to somehow "preview" a Subscription Change, I recommend to use the Upcoming Invoice API

somber lynx
#

Hi, thanks for your answer Orakaro 🙂 Why I'm asking is because we wanna know if a successful response from a subscription update call (like adding a license) is equal to that we managed to reserve / collect the money?

#

Given that we want to be paid in advance, Is it safe to provision the additional license after we've received a successful response from you on the customer subscription update call (or the webhook customer.subscription.updated)? Or should we do that when that invoice has been paid (invoice.paid webhook)

wanton shoal
#

Both customer.suscription.updated and invoice.paid should work. The problem with invoice.paidis that you can have standalone Invoice (no Subscription) and it can also fire that event