#eduard-tomas_best-practices

1 messages ยท Page 1 of 1 (latest)

young flameBOT
#

๐Ÿ‘‹ 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. Thank you for your patience!

โฑ๏ธ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime! If this thread is closed and you have another question you'll need to start a new thread.

๐Ÿ”— 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/1213089263428698202

๐Ÿ“ Have more to share? You can add more detail below, including code, screenshots, videos, etc.

paper cobaltBOT
gilded portal
#

๐Ÿ‘‹ happy to help

#

so if I understand correctly you want to update a subscription to a paid plan with a hosted Stripe surface?

fierce trench
#

yes but I want to know if the checkout will give error or allow to update a subscription for another one

#

checkout session I'm talking about

#

so I'm passing to the checkout session subscription mode params the customer id (that do not have any payment method yet) and the new subscription product

#

but this customer id already have a subscription with a product that have a free trial associated

#

so then I want to know what would do Stripe checkout, to give an error because already have a subscription, update the subscription, ...

#

and what's the best practice

gilded portal
#

Checkout can't be used to update a subscription

#

instead what you need to use is the Customer Portal

#

and you can use Deep links and flows to get your customer to the exact page where they can update their subscription

#

unfortunately this needs some development

fierce trench
#

no but then I can eliminate the subscription and then called the checkout no?

paper cobaltBOT
open raft
#

Hi there ๐Ÿ‘‹ apologies for the delay. I'm jumping in to lend a hand, please bear with me a moment while I catch up on the context here.

open raft
fierce trench
#

don't worry I've already solved