#Roopa
1 messages · Page 1 of 1 (latest)
Hi there. You'll need to use a subscription schedule for this: https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases#downgrading-subscriptions
Thank you for that, I will go through it.
one more question what I have is, if user updates his payment details before the failed payment retry, will not pay the amount to the pending invoice?
Not sure I understand, but if the customer updates their payment details to something valid before the retry, the invoice should be paid successfully
This is not happening in my case. am I missing something?
does it happen immidiately?
Please wait for few minutes, I deleted that user, I will create a one and send it you.
I am using the test clock does it make any difference?
Gotcha. It shouldn't make a difference, but let me see what you're doing
invoice id: "in_1LnPD4DwT5gdvn7nCEwdgYaE",
👋 stepping in
Catching up and looking at your example
Updating payment details doesn't trigger a new retry immediately
The invoice will still retry at the specified time
is ther any way we can do it immediately?
Sure, you can use the Pay Invoice endpoint: https://stripe.com/docs/api/invoices/pay
what I mean is immediately after updating the card details from customer portal
You can listen for webhooks and hit the above endpoint. Otherwise, no.