PayPal\Api\VerifyWebhookSignature::getWebhookEvent PHP Method

getWebhookEvent() public method

The webhook notification, which is the content of the HTTP POST request body.
public getWebhookEvent ( ) : WebhookEvent
return WebhookEvent
    public function getWebhookEvent()
    {
        return $this->webhook_event;
    }

Usage Example

 /**
  * @depends testSerializationDeserialization
  * @param VerifyWebhookSignature $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getAuthAlgo(), "TestSample");
     $this->assertEquals($obj->getCertUrl(), "http://www.google.com");
     $this->assertEquals($obj->getTransmissionId(), "TestSample");
     $this->assertEquals($obj->getTransmissionSig(), "TestSample");
     $this->assertEquals($obj->getTransmissionTime(), "TestSample");
     $this->assertEquals($obj->getWebhookId(), "TestSample");
     $this->assertEquals($obj->getWebhookEvent(), WebhookEventTest::getObject());
 }