public function __construct(SignifydSettingsMagento $settings) { if (is_null($settings->apiKey)) { $settings->apiKey = ""; } $this->magentoSettings = $settings; parent::__construct($settings); }
/** * @param $caseData * @return bool */ public function postCaseToSignifyd($caseData, $order) { $this->_logger->request("Sending: " . json_encode($caseData)); $id = $this->_api->createCase($caseData); if ($id) { $this->_logger->debug("Case sent. Id is {$id}"); } else { $this->_logger->error("Case failed to send."); return false; } return $id; }