flowfuse icon indicating copy to clipboard operation
flowfuse copied to clipboard

Extra instance subscriptions not cancelled, refunded, or prorated after deletion

Open cstns opened this issue 4 months ago • 1 comments

Current Behavior

When an extra hosted/remote instance (beyond the plan allowance) is deleted, the related Stripe subscription is not cancelled.
No refund or proration is applied, and the subscription remains active in Stripe, continuing to generate invoices.
This occurs on both monthly and yearly billing.

Image

Expected Behavior

  • Deleting an extra instance should:
    • Cancel the related Stripe subscription.
    • Apply proration or a refund if applicable.
    • Prevent further invoices for the deleted instance.

Steps To Reproduce

  1. Create a new team.
  2. Exceed the instance limit by 1.
  3. Confirm in Stripe that a new subscription for the extra instance is created.
  4. Advance time by 1 month to complete the first billing cycle.
  5. Delete the extra instance from the UI.
  6. Advance time by 2 weeks, then in increments up to 1 month.
  7. Observe that:
    • No refund or proration is applied.
    • The subscription remains active in Stripe.
    • The subscription will still be invoiced.

Environment

  • FlowFuse version: 2.20
  • Node.js version: N/A
  • npm version: N/A
  • Platform/OS: N/A
  • Browser: N/A

Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate

cstns avatar Aug 13 '25 09:08 cstns

I haven't been able to reproduce this behaviour with my local environment.

  1. Created a team with an allowance of 2 hosted instances.
  2. Created 2 instances - verified the stripe subscription still only showed the team item.
  3. Created 3rd instance - verified sub was updated to include 1x instance item
  4. Rolled the sub clock forward a month
  5. Deleted the 3rd instance - verified sub was updated to no longer include the instance

@cstns may need to see if you can recreate with your setup so we can see what's different.

knolleary avatar Nov 05 '25 15:11 knolleary