#borys-void-invoice
1 messages · Page 1 of 1 (latest)
Would it solve your underlying problem if you set Invoice status to leave the invoice as-is via here?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
unfortunately no, it brings another issue, especially for cardless trials, invoice fails because there is no payment method, and subscription gets cancelled but invoice stays in this pending state, after a year customer comes back and buys new subscription, but at the moment when customer adds payment method for new subscription, the old failed invoice gets charged too
I see. So you can programmatically mark Invoice as void after a Subscription is cancelled
right yea i was just wondering if there is a configuration maybe somewhere for that
I also have this exact use case. We ended up hiding the invoices from the user with the initial Invoice metadata.
Going back to your original question:
is there a way to configure a subscription so that when it gets canceled all associated open invoices are marked as "void"?
Yes. You would just listen for thecustomer.subscription.updatedwebhook Event and check ifstatus == canceledon the Subscription, then set the Invoice status tovoid