#jayamini_code

1 messages ¡ Page 1 of 1 (latest)

pine idolBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1310866360263507978

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

patent agate
#

Is there a way to configure the billingPortal.sessions.create request (or any related API) to display only prices associated with the subscription passed in the subscription_update flow

tired cedar
#

Yes the behaviour is consistent in live mode and test mode

#

What's the ID of the billing portal configuration?

patent agate
#

bpc_1OhTzNAKv6LsYLX2AxVa7iGI
this is the default configuration

we are not setting a configuration in stripe.billingPortal.sessions.create

tired cedar
#

Ok, I saw you set a few products in the subscription_update array

#

Hmm, that's the problem, you should set one when creating a session.

patent agate
#

would it be ok to create a new configuration every time we genarate a portal url with billingPortal.sessions.create

#

since we won't be able to fetch old configuration with subscription or product data

#

also can we set eligible products with configuration for current session? stripe portal requires us to add at least one eligible product when we allow update

tired cedar
#

The products are configured through the billing portal configuration, not on the billing portal itself.

#

Yes you can create a new configuration for each session. You can also set the configuration to inactive if you don't have plan to reuse it in the future