#hugo_docs
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/1339541225648296009
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
- The user inputs an invalid CC, and clicks Subscribe.
- The event
checkout.session.completedis fired.
This is incorrect
It's not fired if the payment fails.
So you can confirm that this statement is incorrect ?
I agree the description is confusing.
So I do not have to care about this: https://docs.stripe.com/billing/subscriptions/overview#how-payments-work-with-subscriptions ?
Why are you creating a Subscription yourself?
You can instead create a Checkout Session in mode=subscription and the Subscription will be created automatically.
That's what I do, yes.
I wanted to be sure that the checkout.session.completed event is fired only when everything is ok, payment etc.
I have had issue continuing provisioning subscription because a CC was not valid, and the user didn't try again in the past.