/**
  * Api certificate getter
  *
  * @return string
  */
 public function getApiCertificate()
 {
     $websiteId = $this->_storeManager->getStore($this->_storeId)->getWebsiteId();
     return $this->_certFactory->create()->loadByWebsite($websiteId, false)->getCertPath();
 }
Exemple #2
0
 /**
  * Process object after delete data
  *
  * @return $this
  */
 public function afterDelete()
 {
     $this->_certFactory->create()->loadByWebsite($this->getScopeId())->delete();
     return $this;
 }