#soleborn_code

1 messages ยท Page 1 of 1 (latest)

celest plinthBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

somber sun
#

Hi @quiet trench please let me know if this doesn't make sense or if you need clarification anywhere!

quiet trench
somber sun
#

yes sorry thats what i mean

quiet trench
#

No worries, just wanted to make sure we're on the page. Looks like part of your question got cut off?

somber sun
#

oop yeah i see it did get cut off! my bad. so summary:

we are using stripe.Subscription.create() in our sign up flow on our actual website
on our website we offer 2 different subscription types (lets call them Subscription1 and Subscription2)

at the same time, on the customer portal, we want people to be able to swithc from Subscription1 to Subscription2, but never Subscription2 to Subscription1.
On the Customer Portal settings, if we only show/allow Subscription2 will that allow โ˜๐Ÿฟ

while still being able to charge people the two different subscription types that we defined in our code in our sign up flow via stripe.Subscription.create()

#

this behavior seems like it could implicitly work, and i wanted to verify with you first

quiet trench
#

Just to make sure I have the full picture, you have a Subscription to a product, that product has two prices? Subscription Price 1, and Subscription Price 2, and you only want people to be able to transition from 1 to 2 and not the other way.( I presume upgrade but not downgrade)

somber sun
#

almost! we have 2 separate products (2 product ids). each product has 1 price_id associated to it. we offer people to subscribe to either product.

and correct assumption here (we want to only allow them to upgrade, but never downgrade):

( I presume upgrade but not downgrade)
#

great questions btw thank you for asking them

celest plinthBOT
quiet trench
#

I tested this by creating a test Subscription, added an "upgrade" product as the only product available on the portal here https://dashboard.stripe.com/test/settings/billing/portal

Then tested the portal and it allowed me to "upgrade" but there is no option to go back. So sounds like your idea should work.

somber sun
#

LFG

#

thank you very much!

#

have a nice day. if theres anywhere i can submit feedback for how well you did lmk i got you

quiet trench
#

Happy we could help!