#Swann-days-till-cancel
1 messages · Page 1 of 1 (latest)
Hi there! Good question, I don't remember the best way to tell this top-of-mind... let me take a look.
Haha thank you!!
I'm looking through the docs on invoicing now to get brushed up to speed on that as well
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?
Let's see
I should have a few production examples on my side project's stripe account
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?
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.
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?