#DeputyCheese
1 messages · Page 1 of 1 (latest)
Fyi I am using subscriptions->update for the upgrade
It works as expected but I am unsure how to handle this upgrade situation on our side if the payment takes longer
hi! It depends how you update it and the collection_method of the subscription, but if it's an immediate payment(https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment) we just charge the saved payment method straight away so it's the same as test mode.
I don't want to freeze his current subscription for example but I need the invoice.paid event for the upgrade
well you wouldn't freeze it, you just would do nothing(keeping them on the current version of the product in your system) until you get an event indicating a paid invoice for an update, I would expect.
Yes it's immediate but it takes some seconds on DEV because the invoice.paid event is received asynchronously via webhooks
Ah wait, I think I thought the wrong way. You're right, nothing happens on our side until the invoice.paid event is received so the previous subscription is active until I receive the invoice.paid event.
Just to be sure: it won't take 0-2 days until it's paid, right? Because on renewals there's a notice that the payment can take up to 2 days in docs.
well they can take 72 hours if a webhook endpoint is not responding to the invoice.created event, but that's only for renewal invoices. If it's the exact 'immediate payment' of an upgrade from my link above, that finalizes + attempts payments on an invoice immediately when the update subscription API is called with no delay