#NotSupportedException

1 messages ยท Page 1 of 1 (latest)

craggy laurelBOT
marsh onyx
#

Hello ๐Ÿ‘‹

worn osprey
#

yup, and how can i know about it in my code?)

#

maybe, in subscription object ...

marsh onyx
#

The invoice object should have the attempt count

worn osprey
#

yes, I've already done it, and i wanna know, the max count of retries, which i configure in retry schedule

#

*in code

marsh onyx
#

Not sure I completely understand your usecase here.
Are you asking if/when a subscription gets cancelled, how do you find the number of times the invoice was retried?

worn osprey
#

So, in my retry schedule, I configured count of retries, and I want to retrieve this count to code and do something with it.

marsh onyx
#

There's no way to programatically retrieve that information
There's no API for that

worn osprey
#

Oh, okay, thx

marsh onyx
#

Yeah sorry for the confusion

worn osprey
#

But can you give me some advice? How can I notify the user that the subscription will be canceled if the next payment fails? Or should I just send a message after the subscription becomes past_due?

marsh onyx
#

There's no workaround for that unfortunately, you'd want to track that yourself by listening to invoice.payment_failed events

worn osprey
#

๐Ÿ˜ข, thx