| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public function run($email, $description = '') |
||
| 38 | { |
||
| 39 | try { |
||
| 40 | |||
| 41 | $response = $this->stripe->customers()->create([ |
||
| 42 | 'email' => $email, |
||
| 43 | 'description' => $description, |
||
| 44 | ]); |
||
| 45 | |||
| 46 | } catch (Exception $e) { |
||
| 47 | throw (new StripeApiErrorException('Stripe API error (createCustomer)'))->debug($e->getMessage(), true); |
||
| 48 | } |
||
| 49 | |||
| 50 | return $response; |
||
| 51 | } |
||
| 52 | |||
| 54 |