Commit 5cf9f2ec authored by Rik ter Beek's avatar Rik ter Beek

for new customers don'' show this error message, as the plugin is not configured yet.

parent 36143356
......@@ -84,9 +84,9 @@ class APIKeyMessage implements \Magento\Framework\Notification\MessageInterface
public function isDisplayed()
{
// Only execute the query the first time you access the Admin page
if ($this->authSession->isFirstPageAfterLogin() && empty($this->_adyenHelper->getAPIKey())) {
if ($this->authSession->isFirstPageAfterLogin() && !empty($this->_adyenHelper->getWsUsername()) && empty($this->_adyenHelper->getAPIKey())) {
try {
$title = "Adyen extension requires the API KEY!";
$title = "Adyen extension requires the API KEY!222";
$messageData[] = array(
'severity' => $this->getSeverity(),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment