From 5ccc3b0ac0d18f5c3ca358450fc0761a31f72c7a Mon Sep 17 00:00:00 2001 From: Mateus Picoloto Date: Tue, 14 Nov 2023 12:05:49 -0300 Subject: [PATCH 1/2] fix: domain and webhook validation --- src/Middle/Model/Account.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } } From bfc83551589f83ad1bc65c1a08b5292138d620e0 Mon Sep 17 00:00:00 2001 From: Mateus Picoloto Date: Tue, 14 Nov 2023 12:09:15 -0300 Subject: [PATCH 2/2] build: update version --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"