/** * Get the Stripe customer for entity. * * @return \Stripe_Customer */ public function getStripeCustomer($id = null) { $customer = Customer::retrieve($id ?: $this->billable->getStripeId(), $this->getStripeKey()); if ($this->usingMultipleSubscriptionApi($customer)) { $customer->subscription = $customer->findSubscription($this->billable->getStripeSubscription()); } return $customer; }