For teams there is a "current_billing_plan" column in the database. I guess this tells you the plan. Null probably means the team is on a free trial. Can you checkt it there?
Cheers
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi,
I am sorry if I am having a noob moment, how do I find out what plan a user or team user is on. I cannot find anything in the docs.
Thanks in advance.
You better use $user->sparkPlan() as it also handles the free plan setup correctly and the situation if someone is on grace period (after he canceled but when he can still use until end of billing period). Check the docs, it'sin there somewhere, also checks for graceperiod and onTrial etc.
Please or to participate in this conversation.