示例#1
0
 /**
  * Update the local Stripe data in storage.
  *
  * @param  \Stripe_Customer  $customer
  * @param  string|null  $plan
  * @return void
  */
 public function updateLocalStripeData($customer, $plan = null)
 {
     $this->billable->setStripeId($customer->id)->setStripePlan($plan ?: $this->plan)->setLastFourCardDigits($this->getLastFourCardDigits($customer))->setStripeIsActive(true)->setSubscriptionEndDate(null)->saveBillableInstance();
 }