$description="Please provide API-KEY for the webservice user ".$this->_adyenHelper->getWsUsername()." for default/store ".$this->storeManagerInterface->getStore()->getName();
}else{
$description="Please provide API-KEY for default/store ".$this->storeManagerInterface->getStore()->getName();
@@ -131,8 +118,13 @@ class APIKeyMessage implements \Magento\Framework\Notification\MessageInterface
*/
publicfunctiongetText()
{
$message=__("Please provide API-KEY for the webserver user ".$this->_adyenHelper->getWsUsername()." for default/store".$this->storeManagerInterface->getStore()->getName());
return__($message);
if(!empty($this->_adyenHelper->getWsUsername())){
$message="Please provide API-KEY for the webservice user ".$this->_adyenHelper->getWsUsername()." for default/store ".$this->storeManagerInterface->getStore()->getName();
}else{
$message="Please provide API-KEY for default/store ".$this->storeManagerInterface->getStore()->getName();