#georges
1 messages ยท Page 1 of 1 (latest)
Hello ๐
The preview may not be super accurate.
Can you share the example subscription ID you're working with?
sub_1N0mQZIDmvRZDzsDr1T5FkSo
๐ stepping in
So looks like your Price here has an unspecified tax_behavior
You'll need to update that to either inclusive or exclusive and make sure the Prices that you want to allow for update have the same tax_behavior
That setting should effect newly created Prices
Hmmm did you have that Setting enabled when you created the Price used for that Sub?
Yes it was already enabled when I created the price
Ah interesting. What was it set to before?
Automatic
Now I have the same issue in production.
I d like my current customers to be able to upgrade their account via the customer portal . Here's a prod subscription id sub_1MskKfIDmvRZDzsDi5FIFHV9
Looking
Are you using a default Customer Portal Config or creating one?
Hmm looks like you might be using an older config where you don't have subscription update enabled: https://dashboard.stripe.com/logs/req_rUtgcYRVVXR7OA
Yes I'm using the default one
I see your default is set for Subscription update... but the one used in your portal session did not include update enabled.
I m just doing this to generate a customer portal url
const { url } = await stripe.billingPortal.sessions.create({
customer: session.user.customerId,
return_url: ${process.env.NEXT_PUBLIC_DASHBOARD_URL!}/apps,
});
Yeah that should work fine...
But why I don't get the right customer portal config?
Looking
subscription update is enabled
Yep I'm checking, one sec
k
Okay looks like the issue here is the fact that the Sub is in a state of pause_collection so you should see the "Your plan is paused" in the Customer Portal but the Customer can't update in this state.
I'm filing some feedback to get this added as a limitation in our docs
Got it! Thx mate it's working now!