#thomasst
1 messages ยท Page 1 of 1 (latest)
๐
You can't modify a sub via a Checkout Session
I assume you don't want to collect the payment method up front here due to higher conversion?
correct
so we'd end up with a duplicate subscription and would have to cancel the other one
or have to skip passing line items and then modify the subscription, in which case the customer doesn't see how much they will be paying
The standard route here would be to just not use a Checkout Session for this
If you want, you could show the info about the upgrade in your own UI, use a Checkout Session in setup mode to collect the paymentmethod, and then update the Subscription.
Like you mentioned, they wouldn't see the Sub details in the Checkout Session
Thanks
The other thing you can do is use the Billing Portal to collect the payment method
Then they would see the Subscription details in the UI
But you would need to be specific about what they need to do on the Customer Portal Page (update Payment Method) since it won't force them to do that.
Thanks, I'll take a look at that.
๐
We'd like to show tax information, which is why we don't want to show the prices in the UI
Which UI?
As in, we don't want to show tax calculation in our own UI.
Since the customer enters the ZIP code in Stripe checkout, it would have to be shown in Stripe's UI.
I see.
You could use the Upcoming Invoice endpoint if you did want to display this yourself: https://stripe.com/docs/api/invoices/upcoming
That would require the customer indicating their ZIP to you though
But yeah I understand what you are saying