#Dimitar(stripes)-subscription
1 messages ยท Page 1 of 1 (latest)
Hi! I'm not sure I understand what information you are looking for in the event object. Can you clarify?
Hi, im looking for indication if this is the final retry to collect payment
Got it! Give me a few minutes to look into this.
Hey, you'd check the attempt_count field on the Invoice object: https://stripe.com/docs/api/invoices/object#invoice_object-attempt_count
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You'd need your own logic to determine if that was the 'final' attempt
Oh ๐ฆ
How can i have my own logic when this is defined from stripe dashboard settings?
I mean there are multiple options for retries
You'd store that in state somewhere I guess
The other option would to check the status field on the Invoice which may change (depending on settings) after all attempts fail
Okay i will try to check the status, what settings might be affecting the status?
thanks, can i define the setting when creating subscription?
Ok, thanks ๐
@fiery plaza as we are using Stripe connect do all connected accounts need to do this or only the main one?
i suspect all of the connected accounts need
I guess there is API endpoint to change the setting on behalf of the connected account
What kind of connected accounts?