Update
Updates a specific price.
Examples
All at once:
$price = \SureCart\Models\Price::find('8ba8d60f-5277-4e6b-807c-dee8166446d5');
$price->update([
'recurring' => true, // recurring price
'recurring_interval' => 'month', // monthly
'recurring_interval_count' => 3 // every 3 months
]);
Wait until attributes are updated:
$price = \SureCart\Models\Price::find('8ba8d60f-5277-4e6b-807c-dee8166446d5');
$price->recurring = true; // recurring price
$price->recurring_interval = 'month'; // monthly
$price->recurring_interval_count = 3; // every 3 months
$price->save();