diff --git a/src/StripeDriver.php b/src/StripeDriver.php index e94cd12..f257747 100644 --- a/src/StripeDriver.php +++ b/src/StripeDriver.php @@ -149,12 +149,12 @@ public function handleNotification(Request $request): Response $this->config['secret'] ); - switch ($event->event->type) { + switch ($event->type) { case 'charge.refunded': - $this->handleIrn($event->event); + $this->handleIrn($event); break; case 'payment_intent.succeeded': - $this->handleIpn($event->event); + $this->handleIpn($event); break; }