#jasperste_api
1 messages ยท Page 1 of 1 (latest)
๐ 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/1341792781122666577
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
With Choose the eligible products that customers can update. we can select the products that are allowed to change to . We have 2 products with both a yearly and a monthly. We would like to allow changing within that, but not change between products
Yes, I have tried every combination. But most combinations cause it to allow to switch products
Maybe I am overlooking something or a setting
Can you share the portal configuration id?
We are using the portal of the dashboard now, what's the best way to find that id?
For example. This will allow to switch from any product to these products. While we only want to allow changing quantities and the interval (year/month)
Yeah idk about the dashboard
You may have to do this via the api: https://docs.stripe.com/api/customer_portal/configurations/create#create_portal_configuration-features-subscription_update-products-prices
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Do you happen to have an example of that dictonary?
Sorry juggling several threads right now
Don't have time to test this out
Which part isn't clear though?
is there an example anywhere that uses that feature (language doesn't matter)
features.subscription_update.products
is it something like
products: [ "$productId" : { prices : .. } ] ?
i'll try out a bit, you can close the thread to focus on the rest ๐
thanks!
I'll leave open for a bit in case I get a sec to try it
Products is an array of dictionaries though
so [{}]
Yeah, sorry. meant that indeed.