From 0ef670b603ce39a8f38600d2ad138a3a6cd4fa24 Mon Sep 17 00:00:00 2001 From: Ankur Kumar Date: Mon, 7 Mar 2022 10:41:45 +0530 Subject: [PATCH] fix: only check for stripe webhooks There might be other webhooks being stored in webhook_calls table, for example mailcoach is storing sns webhooks --- src/StripeWebhookProfile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/StripeWebhookProfile.php b/src/StripeWebhookProfile.php index 9e602fa..dd37a83 100644 --- a/src/StripeWebhookProfile.php +++ b/src/StripeWebhookProfile.php @@ -10,6 +10,6 @@ class StripeWebhookProfile implements WebhookProfile { public function shouldProcess(Request $request): bool { - return ! WebhookCall::where('payload->id', $request->get('id'))->exists(); + return ! WebhookCall::where('name', 'stripe')->where('payload->id', $request->get('id'))->exists(); } }