#kirito
1 messages ยท Page 1 of 1 (latest)
Hi ๐ I'm not sure I'm following the scenario that you're describing. Would you mind trying to elaborate?
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 ?
?
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.