#od-specks_best-practices

1 messages ¡ Page 1 of 1 (latest)

alpine quartzBOT
#

👋 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.

sick plinth
#

hi there!

#

how are you accepting payments? Checkout Session, Payment Element, something else?

raven jewel
#

Hello !
Checkout Session

sick plinth
#

and you are creating Subscriptions with the Checkout Session?

raven jewel
#

Yup

sick plinth
raven jewel
#

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 :/

sick plinth
#

I don't really want to create other Subscritpions.
no, you keep the existing Subscription, and add/remove prices to it.

raven jewel
#

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.

sick plinth
#

not at all. did you read the link I shared with you?

raven jewel
#

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)

sick plinth
#

Checkout Session is only used to create a Subscription, you cannot update a Subscription with it.

raven jewel
#

Yeah but how do i make the user pay for the addons ?

sick plinth
#

when you update the Subscription, Stripe will either directly charge the user, or charge them when the next invoice is due.

raven jewel
#

Oh !

sick plinth
raven jewel
#

Thank you soooo much

#

And sorry for the bothering