public function execute() { $rawRequest = $this->getRawPost(); $hash = $this->getHeader('X-SIGNIFYD-SEC-HMAC-SHA256'); $topic = $this->getHeader('X-SIGNIFYD-TOPIC'); $this->_logger->info("Test log something"); if ($this->_api->validWebhookRequest($rawRequest, $hash, $topic)) { $request = json_decode($rawRequest); $this->initRequest($request, $topic); } }
public function postCaseToSignifyd($caseData) { $id = $this->_api->createCase($caseData); $this->_logger->info("Case sent. Id is {$id}"); }