From 1bda22a79bcc3962f9efb8aff2fc703fe5e95940 Mon Sep 17 00:00:00 2001 From: Mateus Picoloto Date: Tue, 14 Nov 2023 12:52:50 -0300 Subject: [PATCH] fix: webhook validation --- .../pagarme/ecommerce-module-core/src/Middle/Model/Account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/pagarme/ecommerce-module-core/src/Middle/Model/Account.php b/vendor/pagarme/ecommerce-module-core/src/Middle/Model/Account.php index 79c9f414..34cb55aa 100644 --- a/vendor/pagarme/ecommerce-module-core/src/Middle/Model/Account.php +++ b/vendor/pagarme/ecommerce-module-core/src/Middle/Model/Account.php @@ -309,7 +309,7 @@ private function validateWebhooks($storeSettings = null) continue; } foreach ($siteUrls as $siteUrl) { - if (strpos($siteUrl, $webhook->url) !== false) { + if (strpos($webhook->url, $siteUrl) !== false) { return; } }