#od-specks_best-practices
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/1303715135050743881
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there!
how are you accepting payments? Checkout Session, Payment Element, something else?
Hello !
Checkout Session
and you are creating Subscriptions with the Checkout Session?
Yup
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
and now you want to update the Subscription with some additional options? Then you should read this: https://docs.stripe.com/billing/subscriptions/upgrade-downgrade
I don't really want to create other Subscritpions.
Let's get an example :
A user wants to get a subscription to get premium features.
But he also want some addons to get even more premium features.
I can have the two products in the checkout session but if the user wants to update the addons he has, he has to cancel the whole subscription to renew one with the addons he wants :/
I don't really want to create other Subscritpions.
no, you keep the existing Subscription, and add/remove prices to it.
Hmm, so what would be the process ?
The user already has a subscription. He asks for 2 addons. I redirect him to the session checkout (containing the 2 addons). It creates a new subscription for the user ?
Then what ? If I am correct, the session checkout creates automatically the subscription and the user ends up with 2 susbcriptions.
not at all. did you read the link I shared with you?
I did (hopefully correctly). When am i suppose to update the subscriptions ? I mean in the process.
(Sorry if i might be a bit rude, my main language is not english)
- you create a Checkout Session to create the Subscription the first time
- then, you directly update the Subscription to add/remove price to the existing Subscription https://docs.stripe.com/api/subscriptions/update
Checkout Session is only used to create a Subscription, you cannot update a Subscription with it.
Yeah but how do i make the user pay for the addons ?
when you update the Subscription, Stripe will either directly charge the user, or charge them when the next invoice is due.
Oh !
please take the time to read this carefully, since it explains everything: https://docs.stripe.com/billing/subscriptions/upgrade-downgrade
It written indeed...
Thank you soooo much
And sorry for the bothering