From 78895a0d31b657cc46b2ae7be448291089b6ed0b Mon Sep 17 00:00:00 2001 From: khushboos Date: Fri, 24 Jan 2025 15:44:49 +0100 Subject: [PATCH] MOTO payment notifications can't be processed if there is no merchant account set for ecom --- Controller/Webhook/Index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Controller/Webhook/Index.php b/Controller/Webhook/Index.php index ccfb1e3ea..6a7016749 100755 --- a/Controller/Webhook/Index.php +++ b/Controller/Webhook/Index.php @@ -213,10 +213,12 @@ private function isAuthorised(array $response) { // Add CGI support $this->fixCgiHttpAuthentication(); + $merchantAccount = $this->configHelper->getMerchantAccount() + ?? $this->configHelper->getMotoMerchantAccounts(); $authResult = $this->notificationReceiver->isAuthenticated( $response, - $this->configHelper->getMerchantAccount(), + $merchantAccount, $this->configHelper->getNotificationsUsername(), $this->configHelper->getNotificationsPassword() );