#benjamin-fazli_api

1 messages ยท Page 1 of 1 (latest)

normal tigerBOT
#

๐Ÿ‘‹ 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.

fervent pumice
#

Hello, before continuing I have a request to not close the thread before being satisifed with the anwser, thanks

fallen hornet
#

๐Ÿ‘‹ 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?

fervent pumice
#

Can we have a meeting

#

So I can explain it?

fallen hornet
#

unfortunately we don't provide meetings on discord

fervent pumice
#

Oh sure

#

I will try to explain then with text

#

We are using checkouts with mode subscription to create subscriptios for our app.

normal tigerBOT
fervent pumice
#

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.

long hamlet
#

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.

fervent pumice
#

Okay even if, we don't want to have incompleted subscriptions

long hamlet
fervent pumice
#

Don't want to do that, why to expire when the user can add another cart in that session? This is not good UX.

long hamlet
#

What do you mean by "add another cart in that session"?

fervent pumice
#

Yes, when you expire the session, the user needs to go back and start the process again

long hamlet
#

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.

fervent pumice
#

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*

long hamlet
fervent pumice
#

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?

long hamlet
#

I don't understand what you mean by this.

#

If you create a new Checkout Session object - the customer will not see this screen.

fervent pumice
#

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

long hamlet
#

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.

fervent pumice
#

Yes, I'm trying to do that

long hamlet