#dominik_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/1357614299304038440
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
I reopen a new question since @broken sigil said to do so when I am ready with the test customer portal link. Old support ticket: #1343872856446074984 message
I have 2 different product categories. Category 1 and Category 2. In the settings of the customer portal, I can define between which plans its possible to up- and downgrade. However, when I specify all of the plans in their (Category 1 Monthly & Yearly, Category 2 Monthly & Yearly), then there are 4 plans between which I can up- and downgrade.
The issue: I am trying to find a solution where I can define that when the user clicks on the "Test-Produkt-2-Yearly - Update Subscription" button, the user can only up- and downgrade between the Product Category 2 and NOT from Category 2 to Category
In this case, when I have Test Product 2 Yearly, I could also select the Test Product 1 Monthly, which is in this case not correct => Only allow up and downgrade within the same product "category"
If I am not selecting all of the plans in the settings, then I am not able to upgrade or downgrade at all
Test session link: https://billing.stripe.com/p/session/test_YWNjdF8xTzdKTThFazhkR0ZnbmlYLF9TNEQydUdNaHZjZHJaWENhdXMzdTNsNDJsWjlhUnZu0100l0Hcdhh6
ah I see, unfortunately, what you're looking to achieve isn't fully possible through the Billing Portal. You'll likely need to build a partial custom implementation to enable your customers to update their subscriptions in this way.
Specifically, you'll want to implement buttons on your site that allow customers to upgrade or downgrade their subscriptions. Then, when your customers click on that button, create and redirect them to a Billing Portal Session that is deep-linked to a specific flow. For the subscription_update flow, you can define the Products and Prices that can be updated for a specific Subscription. You can find more details here: https://docs.stripe.com/customer-management/portal-deep-links#create-a-flow.
If you choose this route, be sure to disable subscription updates on your standard (non-deep-linked) Billing Portal
Alright, this already helps a lot. I already thought about something like this, however I couldnt find it anywhere.
Could you point me in the right direction where I can find more information on the flowdata, especially talking about adding product and prices to it
cause I only see flow_data subscription
when creating the Billing Portal Session, you can pass in a Billing Portal Configuration - So you would create the Billing Portal Configuration, and would define the Prices and Products that a Subscription can be updated to : https://docs.stripe.com/api/customer_portal/configurations/create#create_portal_configuration-features-subscription_update-products