Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
WebhookRequest.php
Go to the documentation of this file.
1 <?php
7 
9 
14 {
18  private $request;
19 
23  public function __construct(
24  Http $request
25  ) {
26  $this->request = $request;
27  }
28 
34  public function getHash()
35  {
36  return (string)$this->request->getHeader('X-SIGNIFYD-SEC-HMAC-SHA256');
37  }
38 
44  public function getEventTopic()
45  {
46  return (string)$this->request->getHeader('X-SIGNIFYD-TOPIC');
47  }
48 
54  public function getBody()
55  {
56  return (string)$this->request->getContent();
57  }
58 }