| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 14 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 21 | public function handle(Request $request, Closure $next): Response | ||
| 22 |     { | ||
| 23 |         try { | ||
| 24 | WebhookSignature::verifyHeader( | ||
| 25 | $request->getContent(), | ||
| 26 |                 $request->header('Stripe-Signature'), | ||
|  | |||
| 27 |                 \Config::get('services.stripe.secret'), | ||
| 28 | null | ||
| 29 | ); | ||
| 30 |         } catch (SignatureVerificationException $exception) { | ||
| 31 | throw new AccessDeniedHttpException($exception->getMessage(), $exception); | ||
| 32 | } | ||
| 33 | |||
| 34 | return $next($request); | ||
| 35 | } | ||
| 37 |