#franois_error
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1277972033023643754
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- franois_error, 18 hours ago, 4 messages
I have been answered that:
You can stil pay outstanding Invoices for a cancelled Subscription, but that's a terminal state on the Subscription (for the most part) so it's expected that the Subscription remained cancelled. There's no way to uncancel a Subscription
hi there!
However, there is still something wrong. While I understand that:
- An unpaid renewal of a subscription gets the subscription to be cancelled
- An invoiced bill can still be paid
It doesn't make sense for the subscription renewal to still be payable once the subscription has been canceled, especially if the cancelled state can't bereverted
An unpaid renewal of a subscription gets the subscription to be cancelled
that depends on your dashboard settings here: https://dashboard.stripe.com/settings/billing/automatic
The payment link should be disabled
An invoiced bill can still be paid
anopeninvoice can still be paid. but you could void these invoices when the Subscription is cancelled: https://docs.stripe.com/api/invoices/void
True. It doesn't influence the logic, though.
That seems interesting
It doesn't make sense for the subscription renewal to still be payable once the subscription has been canceled, especially if the cancelled state can't bereverted
that's how it works. our recommendations is to void all invoices in this case as mentioned above.
Give me a second to check something please
So, you say that, when the renewal fails, if I set the subscription to be cancelled in such a case, I should mark the invoice as void or unrecoverable. However, I don't see an option to do that. How am I supposed to do this exactly?
There is still something that feels wrong in the process. The payment of the renewal automatically continues the subscription in Stripe. But if the subscription has been cancelled in the meantime, the payment does nothing in Stripe. That feels asymmetrical.
Hey there, you can do that by calling invoice /void API in response to a cancelled subscription webhook for example.
It really feels like the payment link of those renewal should be disabled when the subscription is cancelled
How do I find the correct invoice? I only have the subscription in the cancellation event
I understand that's your expectation, but not all business work that way, some have real provisioning costs that need to be paid even if the subscription is cancelled due to failure, for example a renewing payment for private storage, if the locker has already been reserved and not rented to a new customer.
It's the latest_invoice on the subscription object
Also, it's weird that subscriptions, renewal and option to cancel subscription if not paid are all provided in the IHM, but the behavior needed to complete the process requires a webhook.
What is IHM?
Oh! Sorry, User Interface. My bad
I meant UI. It's the french translation
NP -- now i know ๐
I agree as long as the option to cancel the subscription on payment failed is not selected
I can share the feedback for offering an option to void invoice on subscription cancel, but for now you need to control that
But when that option is selected, I don't see any scenario where this can be expected
I know. We'll do that. I just want to convince you that, very very likely, all of your customer would feel the same way I do ๐
And so that it would be a good addition
I initially thought it was a bug
I agree! I just added your example to our feedback tracker for the billing team to review ๐
Just to confirm,
I have to listen to the subscription.cancelled event (something like that), then retrieve the latest_invoice from the data, then request that invoice to see if it has been paid or not, and if it has not been paid, do another request to mark it as void to stop the collection. I also need to generate an invoice of opposite value to be in conformity with the legislation.
then retrieve the latest_invoice from the data, then request that invoice to see if it has been paid or not, and if it has not been paid, do another request to mark it as void to stop the collection
Yes, sort of, you can actually simplify and just try calling/voidif you like. If it's already paid that will simply error and tell you you cannot void a paid invoice
(ie, skip retrieval and inspection, unless you need that for another reason)