#kirito

1 messages ยท Page 1 of 1 (latest)

rich pantherBOT
grave ridge
#

Hi ๐Ÿ‘‹ I'm not sure I'm following the scenario that you're describing. Would you mind trying to elaborate?

rare warren
#

Yes I'm using node js with stripe, I have a range of subscription (free, medium, pro), the user may update from free to pro or medium, so he dont have a payment method defined, would the update (stripe.subscriptions.update(id, data) ) return a client_secret to use to pay ?

#

?

grave ridge
#

It depends, the update itself will not no, but if you also use proration settings to generate a new Invoice at the time of the upgrade, then that Invoice will have a Payment Intent which will have a client secret you can use.

When you make the update, does the pending_setup_intent field on the Subscription get populated with the ID of a Setup Intent?
https://stripe.com/docs/api/subscriptions/object#subscription_object-pending_setup_intent