#benjamin-fazli_api
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/1350073397740179467
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- benjamin-fazli_api, 7 minutes ago, 34 messages
- benjamin-fazli_checkout-subscriptions-saved-pms, 19 hours ago, 141 messages
Hello, before continuing I have a request to not close the thread before being satisifed with the anwser, thanks
๐ happy to help
sorry we close the thread after some idle time so we can focus on active threads
would you mind sharing the info that my colleague asked you for?
unfortunately we don't provide meetings on discord
Oh sure
I will try to explain then with text
We are using checkouts with mode subscription to create subscriptios for our app.
But we have a problem with payments tha fail for any reason. Stripe creates incomplete subscriptions for how many times the payments fails. So for example within a checkout if the card fails 3 times, it creates 3 subscriptions as incomplete. And we do not want that behaviour by default. But I read that there is no way to disable that option, only if we use subscriptions create api without the checkout.
We have problems with it because as per our understanding it will try to charge the user within 24 hours and we do not know what happens when user has 3 subscriptions as incomplete will it charge it? Also we do not want to charge the user for uncompleted subscriptions because they are not notified about it, and we do not want to manage incomplete subscriptions at all.
We just want to count a subscription as active when the payment pases and that's all. I don't understand why we nee to follow this rule by default. But what we can do.
So I thought about a solution, and I found that when a subscription incomplete is created because of failed, it triggers and payment_failed event, where I can delete the subscription and also that invoice, in this case I would keep a clean for subscriptions happening. But gues what, Stripe doesn't allow us to cancel a subscription without the checkout session being expired so in this case we do not know what to do.
when user has 3 subscriptions as incomplete will it charge it
It can't be charged, since it's incomplete - there's no PaymentMethod attached.
After 24h the Subscription will be deleted.
Okay even if, we don't want to have incompleted subscriptions
Stripe doesn't allow us to cancel a subscription without the checkout session being expired
You can expire the Checkout Session then? https://docs.stripe.com/api/checkout/sessions/expire
Don't want to do that, why to expire when the user can add another cart in that session? This is not good UX.
What do you mean by "add another cart in that session"?
Yes, when you expire the session, the user needs to go back and start the process again
But if the payment fails, they can just try another payment method, why cancel the Subscription then? A new Subscription will be created only if they start the process again.
I don't want to show this screen, I want the user to still continue on that session to try again with different cards
Creating incomplete sessions for us is an issue
So we do not want to have incompleted sessions, we want to delete them
I don't understand at first place why it creates a subscription, it should only create a failed invoice.
Failed payment*
This means you need to create a new Checkout Session.
Can i create the checkout without showing this screen?
in the sense continue it or somehow handle it within that to recreate one so the user cannot notice it?
I don't understand what you mean by this.
If you create a new Checkout Session object - the customer will not see this screen.
I sawa this possible option:
recovery: {
enabled: true,
allow_promotion_codes: true
}
},```
It says in docs somehow if the session canceles, it can recreate a new one without switching the view
What do you mean by "switching the view"? Why would the view switch?
Could you please record a video that demonstrates the flow that is causing problems, since I don't quite understand what's the issue.
Yes, I'm trying to do that
I will have to close this thread now, since I am stepping away. Feel free to create a new one in #help when you're ready, or reach out to Stripe Support: https://support.stripe.com/?contact=true