Ejemplo n.º 1
0
 /**
  * Update the local Gateway data in storage.
  *
  * @param  \Gateway\Customer  $customer
  * @param  string|null  $plan
  * @return void
  */
 public function updateLocalGatewayData($customer, $plan = null)
 {
     $this->billable->setGatewayId($customer->id)->setGatewayPlan($plan ?: $this->plan)->setLastFourCardDigits($this->getLastFourCardDigits($customer))->setGatewayIsActive(true)->setSubscriptionEndDate(null)->saveBillableInstance();
 }