diff --git a/Controller/Webhook/Index.php b/Controller/Webhook/Index.php index ccfb1e3ea8..6a7016749c 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() );