From f15fb4c412fa0d3022a7efbf9d5038dab5f7054b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Tue, 11 Jun 2024 19:50:34 +0200 Subject: [PATCH] Add GoCardless webhook controller for processing events --- .../GoCardlessOAuthWebhookController.php | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 app/Http/Controllers/Gateways/GoCardlessOAuthWebhookController.php diff --git a/app/Http/Controllers/Gateways/GoCardlessOAuthWebhookController.php b/app/Http/Controllers/Gateways/GoCardlessOAuthWebhookController.php new file mode 100644 index 0000000000..b0a4286e3e --- /dev/null +++ b/app/Http/Controllers/Gateways/GoCardlessOAuthWebhookController.php @@ -0,0 +1,31 @@ +events as $event) { + match ($event['details']['cause']) { + 'app_disconnected' => info($event), + default => nlog('Not acting on this event type: ' . $event['details']['cause']), + }; + } + } +}