#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.
Hello
I want to retry a failed payment on stripe via some calls in the backend and not by going to the dashboard
i.e. for example
if user's payment failed due to some reasons and now he/she update their card details or add a new card and now I want to retry the failed payment
instead of waiting for automatic retries or doing it manually via stripe dashboard
so you're talking about subscriptions?
Yes recurring subscriptions
you can always use the underlying payment_intent.client_secret of the latest_invoice on the subscription to pay that invoice on the front end
using the Payment Element for example
I didnt get this is there any docs for this?
it's basically the same as this step https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements#collect-payment from creating the subscription
but instead of creating the subscription from this step https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements#create-subscription you need to retrieve the subscription and expand: ['latest_invoice.payment_intent'],
and the rest is the same
Okay sure I will check this. Thanks for the help.
let me know if you need any more help