#poacher2k-subscriptions-portal
1 messages ยท Page 1 of 1 (latest)
ie. hide the topmost "Cancel plan" here
Hey there ๐ yes, the user would need to be subscribed to both products. Please allow me a moment to double check if there is a way to restrict what the user would see in the customer portal.
aha, okay! I guess I'll need to keep track of the subscription state of every product, and make sure that they're all active then
could you verify my thinking in this hypothetical here?
they would need to be subscribed to both the "Professional plan" and the "Extra storage" plan, where let's say I would charge for every extra GB stored not included in the base plan. if the Plan included 50GB, and they have stored 150GB, I would create a Usage Records of 100GB on the "Extra storage" subscription, right?
Yup, that sounds right.
nice! then if they change their subscription to "Ultimate" with 140GB included, I would simply create a new Usage Record with 10GB, and everything would just work?
if the user upgraded towards the end of the billing period, this would potentially save them some money, but likewise if they downgraded it could cost them more, though?
Hm, I'm trying to think through how our proration behavior would handle that change.
I've been thinking that aggregate_usage=last_ever would make sense here, so that I would only have to create new Usage Records when the user changes their usage, and month-to-month invoices without any usage change would go automatically
Ah, that's a really clever approach!
I guess we can always involve a human if the customer thinks they have been charged unfairly
(I'm still looking into whether you can control the particular subscriptions/products that show up in the customer portal)
we've modeled the plans in a way that it will always save the customer money by upgrading if their usage have exceeded the included usage of their previous plan, so in theory they would want to either upgrade to a better plan, or outright cancel
when upgrading, they would have the "nice, a lot more is included now, so I pay less" experience, rather than things being more expensive
so without any proration of the "Extra storage", it would always favor the customer
To help with our investigation, are you currently putting both the base plan and the overage items on a single subscription?
I think I've gone and confused myself away. I've been creating a separate subscription per product through the dashboard, but when doing this in code, I would just add the products to the items array, right?
Yup, you can use that array to place multiple items in a single subscription.
ahh, I completely forgot you could add multiple items. ๐คฆโโ๏ธ
I think the portal may not like subs with multiple items though, double checking.
so now I got this, but no way of changing between just the plans
I think you're right
Ah, yeah, it does take away the upgrade option ๐ฆ hm
okay, so for change of plans we'll have to implement that ourselves
It seems that way, I'm looking for anything else we have that might help you but it seems like your scenario is a touch too nuanced for the current portal.
makes sense!
thank you so much for your help, and for reminding me of the correct way of doing this!
the portal is still super useful to handle all the billing information ๐
Thanks for that, and best of luck with your project!
thank you! ๐