I have a $plan with invoice_interval of a value 'year'. I do:
$plan::find(2); // the one with `invoice_interval` set to 'year'
$subscription = $user->subscription();
$subscription->changePlan($plan);
After checking the db, I have indeed changed plan_id, price and currency but not invoice_period and invoice_interval fields. As $syncInvoicing is by default true in changePlan() I would expect that invoice_period and invoice_interval got updated as well in the plan_subscriptions table?
The ends_at was properly extended by a year from now.
I have a $plan with
invoice_interval
of a value 'year'. I do:After checking the db, I have indeed changed
plan_id
,price
andcurrency
but notinvoice_period
andinvoice_interval
fields. As$syncInvoicing
is by defaulttrue
inchangePlan()
I would expect thatinvoice_period
andinvoice_interval
got updated as well in theplan_subscriptions
table?The
ends_at
was properly extended by a year from now.