#franois_error

1 messages ยท Page 1 of 1 (latest)

pure solsticeBOT
#

๐Ÿ‘‹ 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.

odd trail
#

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

formal vault
#

hi there!

odd trail
#

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

formal vault
odd trail
#

The payment link should be disabled

formal vault
odd trail
formal vault
#

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.

odd trail
#

Give me a second to check something please

pure solsticeBOT
odd trail
#

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.

pearl silo
#

Hey there, you can do that by calling invoice /void API in response to a cancelled subscription webhook for example.

odd trail
#

It really feels like the payment link of those renewal should be disabled when the subscription is cancelled

odd trail
pearl silo
#

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

odd trail
#

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.

pearl silo
#

What is IHM?

odd trail
#

I meant UI. It's the french translation

pearl silo
#

NP -- now i know ๐Ÿ™‚

odd trail
pearl silo
#

I can share the feedback for offering an option to void invoice on subscription cancel, but for now you need to control that

odd trail
#

But when that option is selected, I don't see any scenario where this can be expected

odd trail
#

And so that it would be a good addition

#

I initially thought it was a bug

pearl silo
#

I agree! I just added your example to our feedback tracker for the billing team to review ๐Ÿ‘

odd trail
#

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.

pearl silo
#

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 /void if 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)