I am currently using laravel spark for stripe v5.0.
I have setup 2 plans
- male plan with $10
- female plan with $5
On the /billing page, my application users based on their gender who are male should see only one plan to subscribe to which is $10 and female users should be able to see only one plan to subscribe to which is $5.
how can I conditionally show them plans based on such User model property?
Okay, I found the answer to this:
We will be able to achieve this in the resolve closure inside SparkServiceProvider like follows: