Exemplo n.º 1
0
 /**
  * Extend a subscription trial end datetime.
  *
  * @return void
  */
 public function extendTrial(\Datetime $trialEnd)
 {
     $customer = $this->getConektaCustomer();
     if ($customer->subscription) {
         $customer->updateSubscription(['trial_end' => $trialEnd->toIso8601String()]);
         $this->billable->setTrialEndDate($trialEnd)->saveBillableInstance();
     }
 }