diff --git a/composer.json b/composer.json index 8a07621..9219d50 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "pagarme/ecommerce-module-core", "description": "Core component for Pagar.me e-commerce platform modules.", "license": "MIT", - "version": "2.3.0", + "version": "2.3.1", "authors": [ { "name":"Open Source Team" diff --git a/src/Middle/Model/Account.php b/src/Middle/Model/Account.php index fa1a2eb..76637b3 100644 --- a/src/Middle/Model/Account.php +++ b/src/Middle/Model/Account.php @@ -284,7 +284,7 @@ private function validateDomain($storeSettings = null) $siteUrls = $storeSettings->getStoreUrls(); foreach ($domains as $domain) { foreach ($siteUrls as $siteUrl) { - if (strpos($domain, $siteUrl) !== false) { + if (strpos($siteUrl, $domain) !== false) { return; } } @@ -309,7 +309,7 @@ private function validateWebhooks($storeSettings = null) continue; } foreach ($siteUrls as $siteUrl) { - if (strpos($webhook->url, $siteUrl) !== false) { + if (strpos($siteUrl, $webhook->url) !== false) { return; } }