authorizationKey = $authorizationKey;
}
/**
* Receive product description
*
* @param \Plumrocket\Base\Api\Data\ExtensionAuthorizationInterface $authorization
* @return string
*/
public function get(ExtensionAuthorizationInterface $authorization): string
{
if ($authorization->isAuthorized()) {
return 'Congratulations! Your serial key is now activated. ' .
'Thank you for choosing Plumrocket Inc as your Magento extension provider!';
}
if (! $this->authorizationKey->get($authorization->getModuleName())) {
return 'Serial key is missing. Please login to your account at ' .
'' .
'https://plumrocket.com' .
' to copy your serial key for this product. ' .
'Read this ' .
'wiki article for more info.';
}
if (! $authorization->isAuthorized()) {
if ($authorization->getStatus() === 503) {
return 'Your serial key is not valid for Magento Enterprise Edition. ' .
'Please purchase Magento Enterprise Edition license for this product at ' .
'https://plumrocket.com';
}
return 'Serial key is not valid for this domain. Please go to ' .
'https://plumrocket.com ' .
'to purchase new license for live site. ' .
'Testing or development subdomains can be added to your license free of charge. Read this ' .
'wiki ' .
'article for more info.';
}
return '';
}
}