From fd1e68f8d14c8dffe2de42c8613c12a52d6ce77d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=2E=20Nagy=20Gerg=C5=91?= Date: Tue, 20 Feb 2024 13:22:55 +0100 Subject: [PATCH] fix --- src/StripeDriver.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }