#Alex-subscription
1 messages · Page 1 of 1 (latest)
@strange gazelle hi! hmm, I suppose this could happen, depending on how your payment flow on the checkout page works and the flexibility you give the customer there.
It's definitely not ideal, it's just an consequence of the design of this default_incomplete Subscription creation flow
not sure I have any better answer here beyond manually voiding those invoices(you could listen for the customer.subscription.updated event when the Subscriptions move to incomplete_expired and then void the latest_invoice with an API call) , I'm not sure if that happens automatically on our side.
Or you could redesign the frontend flow a bit so the customer can't change plan after already being on the payment page that requires the client_secret. Not really any good options.
ideally a future update to the customer portal settings page in stripe would be the option to filter invoice statuses, to only show paid for example
I'll see what webhooks we are getting in for invoices expiring
I do notice they expire themselves after 24 hours and don't show in the customer portal invoice list after that, so we might take the risk for now of not taking any action and wait to see if any customers raise confusion queries and hope they don't visit the customer portal straight after subscribing 🤞