#altair7596
1 messages ยท Page 1 of 1 (latest)
๐ how may I help?
So when stripe reaches it's max tries to retry It'll set invoice status to uncollectable right?
yes
So when I use the invoice.payment_failed webhook I use this condition if (
(dataObject['billing_reason'] == 'subscription_create' ||
dataObject['billing_reason'] == 'subscription_cycle') &&
dataObject['attempt_count'] > 0
)
But this condition will run even on first fail attempt of subscription_cycle.
I'm thinking about the way That can I get invoice status: uncollectable or something ? So I rearrange my condition that It should be ( dataObject['billing_reason'] == 'subscription_cycle' && status: uncollectable) .
yes that's expected
Can I get status: uncollectable In this exactly webhook or I have to try something else.
what are you trying to achieve?
I want to send mail to user When stripe reaches It's max tries for payment attempt.
Here I set retry after 5 days
you can use the customer.subscription.deleted in that case
No see that's the case, I don't want to cancel the subscription but paused it and then send an email
The thing here is How can I exactly know that this webhook Getting called On all retries for a payment fail
in your settings you chose Subscription Status if all retries for a payment fail, cancel the subscription
..
I will pause It , That's not an issue
ok
The thing here is How can I exactly know that this webhook Getting called On all retries for a payment fail
Will It get the status:uncollectable ?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
And Only in the scenario status will set to uncollectable ? Not in any other case , right ?
and https://stripe.com/docs/api/invoices/object#invoice_object-status uncollectible
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 can mark an invoice manually as uncollectible
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Okay thanks