/** * Update a customer. * * @param array $properties * * @return Customer */ public function update(array $properties = array()) { $this->info(); if (!empty($properties['description'])) { $this->stripe_customer->description = $properties['description']; } if (!empty($properties['email'])) { $this->stripe_customer->email = $properties['email']; } if (!empty($properties['coupon'])) { $this->stripe_customer->coupon = $properties['coupon']; } if (!empty($properties['card_token'])) { $this->stripe_customer->card = $properties['card_token']; } $this->stripe_customer->save(); $this->stripe_customer = null; return $this; }