コード例 #1
0
ファイル: Index.php プロジェクト: adderall/magento2
 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);
     }
 }
コード例 #2
0
ファイル: PurchaseHelper.php プロジェクト: adderall/magento2
 public function postCaseToSignifyd($caseData)
 {
     $id = $this->_api->createCase($caseData);
     $this->_logger->info("Case sent. Id is {$id}");
 }