#rock_17

1 messages · Page 1 of 1 (latest)

harsh vortexBOT
#

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.

modest nebula
#

Hi, let me help you with this.

zealous cloud
#

Hey

modest nebula
#

Could you please share the Invoice ID?

zealous cloud
#

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.

modest nebula
#

Stripe will automatically retry Invoice payments after some time. I guess it does this as well when the Payment Method is updated.

zealous cloud
#

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?

zealous cloud
# modest nebula Stripe will automatically retry Invoice payments after some time. I guess it doe...

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.

modest nebula
#

It will keep retrying for a few times within a couple of days.

zealous cloud
#

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.

modest nebula
zealous cloud
#

req_QAA6AW87CKg13h

#

here

modest nebula
#

Thanks. And for the case when it didn't retry?

zealous cloud
#

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.

modest nebula
#

There might be different factors at play, so it's hard for me to say, unfortunately.

modest nebula
zealous cloud
#

No problem.

harsh vortexBOT
zealous cloud
#

Hey

#

Can you help me with the above problem?

plain hollow
#

was there an outstanding question you had?

zealous cloud
#

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.

plain hollow
#

it waits

zealous cloud
#

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.

plain hollow
#

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