#rock_17
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
Hi, let me help you with this.
Hey
Could you please share the Invoice ID?
Yes
in_1OYrAqCtiaajKx2EsZhf8ujr
I wrote a code to retry the last failed invoice when I update a customer's payment method only if certain conditions met.
Now when i updated the customer payment_method and conditions returned false then also the payment was initiated on its own via stripe. Confused here.
Working on Test env.
Stripe will automatically retry Invoice payments after some time. I guess it does this as well when the Payment Method is updated.
I havent tested this before, But some of the customers on our website reported that even after updating the card details the payment is not getting retried on its own.
Is this the default behaviour or we can switch this in the settings somewhere?
Also like stripe renewals are retried https://dashboard.stripe.com/test/revenue_recovery/retries using this interface or will it keep on retrying on the backend? Because the attempt_count for the invoice is 1.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
It will keep retrying for a few times within a couple of days.
You can configure it here: https://dashboard.stripe.com/settings/billing/automatic
I added the next retry to be after few hours from when it actually happened. That is directly after updating the card details. It should have waited for the next retry attempt.
Last time when I tested it for a different configuration it only added the new card and didnt try to charge the last open invoice.
Could you please share the Request ID req_xxx of when you updated the card? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Thanks. And for the case when it didn't retry?
I think that would be impossible to find for me right now, I tested it around 1-2 weeks ago on a different configuration.
But I am sure that the payment retry didnt happened on its own.
There might be different factors at play, so it's hard for me to say, unfortunately.
There's also a configuration on this page that makes Stripe send an email to the customer to update their Payment Method if an Invoice payment fails. It will then surely retry it instantly.
No problem.
was there an outstanding question you had?
No the same question vanya was unable to answer based on some factors.
The thing about whether after updating the card, stripe retries the last failed payment right after that or it waits for the next retry attempt to be made when it is scheduled.
Sorry but I am so much confused in this.
it waits
Right, Actually I updated a customer's card details on test env and it retried the payment on its own for the last paid invoice, that never happened before. Retry attempts are set for few hours after card update.
it might do immediate retries if you update it in a very specific way and set of circumstances using legacy APIs
which looking at the request ID, is exactly what you did(this old deprecated source parameter on the Customer object)
at this point those API parameters are almost never used any more so I really rarely run into that edge case