#Swann-days-till-cancel

1 messages · Page 1 of 1 (latest)

fervent ravine
#

Hi there! Good question, I don't remember the best way to tell this top-of-mind... let me take a look.

runic hedge
#

Haha thank you!!

#

I'm looking through the docs on invoicing now to get brushed up to speed on that as well

fervent ravine
#

Have you already tested failing a payment on a Subscription?

#

I can't remember if when the Sub goes to past_due we set cancel_at as well.

#

I don't believe we do, especially if you are on Smart Retries

#

Still thinking...

#

If you haven't tested this yet, can you? Then provide the Subscription ID from your test?

runic hedge
#

Let's see

#

I should have a few production examples on my side project's stripe account

fervent ravine
#

So now that I think about it.... this is impossible if you are using Smart Retries. Are you using Smart Retries or are you using a set schedule?

#

I'm assuming you are canceling Subscriptions after their retries fail?

runic hedge
#

Here's a subscription id that failed a subscription update but is not cancelled yet sub_1KcuZ3IbnGMFSMeS231uGc11

#

I am using smart retries

#

And yes, sorry

#

This is what our current configuration looks like

#

So there's no way to know how many retries there's been already?

#

Oh how many are left, rather.

fervent ravine
#

You can find that out by retrieving the subscription's latest_invoice and expanding the PaymentIntent and then looking at the count of charges for that PaymentIntent.

#

But yeah, you won't know the timing here since Smart Retries are not going to fire on a specific schedule.

#

You can assume that 3 weeks is the outer bound though?

#

Does that solve for what you are looking for?

#

What's the use-case that you need this info?

runic hedge
#

hmmm

#

This is the banner I'm currently tasked with creating

fervent ravine
#

Gotcha... well in that case I would recommend changing it to "you have x amount of retries remaining which will take place within the next 3 weeks". Or something like that.

#

Otherwise, you need to change from Smart Retries to set retry schedule

runic hedge
#

Alrightyyy

#

Thanks for the context!!

#

To the pm we go haha