Hello,
We're trying to to do multiple subscriptions under the do-checkout method on SubscriptionsController.
Our code is something like this.
$plan = session()->get('plans');
foreach($plan['plan_id'] as $key => $val) {
$plan = Plan::find($val);$plan_name[] = $plan->name;
if ($plan->exists) {
$this->subscribe($plan, $gateway, $user);
}
}
But seems to be that it is only getting one subscription. Can you please help us regarding this matter ?
BTW, on subscribe method we removed the redirection just for us to do multiple.
Thank you.