Sep 11, 2021
0
Level 7
Multi-price subscription with Laravel Spark
Hi,
I have implemented the latest version of Spark in my SaaS app. All working smooth.
The problem is that recently, we allow our users to purchase additional teams and seats, and I have implement a multi-price subscription.
Example
// Choose number of teams (2 in this example) and submit form
// Then in the controller I get the Spark default subscription and add the price id and quantity
$user->subscription('default')->addPrice('price_additional_team', 2)
After doing this, I can see in the database that the subscription was updated and now includes 2 items. But if I go to the default Spark billing page, it's broken. It does not show the selected base plan. It's just empty.
Anyone faced this issue? Can this be customized?
Thanks
Please or to participate in this conversation.