#georges

1 messages ยท Page 1 of 1 (latest)

native lanceBOT
proven zealot
#

Hello ๐Ÿ‘‹
The preview may not be super accurate.
Can you share the example subscription ID you're working with?

late elm
#

sub_1N0mQZIDmvRZDzsDr1T5FkSo

fiery plume
#

๐Ÿ‘‹ 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

late elm
#

Ok so customer support doesn't work with Automatic tax collection

#

?

fiery plume
#

That setting should effect newly created Prices

late elm
#

I meant with tax determination based on currency

#

sorry

fiery plume
#

Hmmm did you have that Setting enabled when you created the Price used for that Sub?

late elm
fiery plume
#

Hmm that's strange then

#

Give me a few moments to look

late elm
#

Ok I manage to make it work by setting Include tax in price to "Set manually"

#

weird

fiery plume
#

Ah interesting. What was it set to before?

late elm
#

Automatic

fiery plume
#

Huh

#

That seems... off. Would have expected automatic to work

late elm
#

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

fiery plume
#

Looking

#

Are you using a default Customer Portal Config or creating one?

late elm
fiery plume
#

I see your default is set for Subscription update... but the one used in your portal session did not include update enabled.

late elm
#

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,
});

fiery plume
#

Yeah that should work fine...

late elm
#

But why I don't get the right customer portal config?

fiery plume
#

Looking

late elm
#

subscription update is enabled

fiery plume
#

Yep I'm checking, one sec

late elm
#

k

fiery plume
#

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

late elm
#

Got it! Thx mate it's working now!