flowfuse icon indicating copy to clipboard operation
flowfuse copied to clipboard

No Stripe subscription created when exceeding team device allowance

Open cstns opened this issue 4 months ago • 3 comments

Summary

When a team exceeds its device allowance, a new device subscription is not created in Stripe.
This happens regardless of whether an annual billing price is set for the device or not.

  • Ensure that adding a device beyond the allowance automatically creates the corresponding device subscription in Stripe.
  • Respect the billing interval (monthly or yearly) based on the user's plan or selected option.
  • Handle proration and immediate charge where applicable.

The charges section is also not present on the create device dialog

References

https://github.com/FlowFuse/flowfuse/pull/5896 https://github.com/FlowFuse/flowfuse/issues/4318

cstns avatar Aug 13 '25 09:08 cstns

@cstns any estimate on a sizing to fix this please?

joepavitt avatar Aug 29 '25 11:08 joepavitt

Did not go into details when testing and figured out what's happening, I just raised an issue for it so we won't lose track of it. Will need a bit of digging to figure out the why. Will tackle this asap

cstns avatar Aug 29 '25 12:08 cstns

I'm coming back to this issue to try to understand what is happening.

@cstns can you recall specific steps to reproduce?

I have a TeamType configured to allow 2 included remote instances. Have created a team of that type, setup billing.

I create 2 devices, no additional items are added to the subscription. I create a third device - the additional item is now added to the subscription.

That's working as intended. What am I missing?

knolleary avatar Nov 05 '25 14:11 knolleary