No Stripe subscription created when exceeding team device allowance
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 any estimate on a sizing to fix this please?
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
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?