Skip to content

Commit 1445d45

Browse files
Merge pull request #2865 from Adyen/ECP-8974
[ECP-8974]MOTO payment notifications can't be processed if there is no merchant account set
2 parents ebadb3a + 7640c23 commit 1445d45

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Controller/Webhook/Index.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,12 @@ private function isAuthorised(array $response)
213213
{
214214
// Add CGI support
215215
$this->fixCgiHttpAuthentication();
216+
$merchantAccount = $this->configHelper->getMerchantAccount()
217+
?? $this->configHelper->getMotoMerchantAccounts();
216218

217219
$authResult = $this->notificationReceiver->isAuthenticated(
218220
$response,
219-
$this->configHelper->getMerchantAccount(),
221+
$merchantAccount,
220222
$this->configHelper->getNotificationsUsername(),
221223
$this->configHelper->getNotificationsPassword()
222224
);

0 commit comments

Comments
 (0)