getSummary() public method

A summary description for the event notification. For example, A payment authorization was created.
public getSummary ( ) : string
return string
 /**
  * @depends testSerializationDeserialization
  * @param WebhookEvent $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getId(), "TestSample");
     $this->assertEquals($obj->getCreateTime(), "TestSample");
     $this->assertEquals($obj->getResourceType(), "TestSample");
     $this->assertEquals($obj->getEventType(), "TestSample");
     $this->assertEquals($obj->getSummary(), "TestSample");
     $this->assertEquals($obj->getResource(), "TestSampleObject");
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }
Ejemplo n.º 2
0
 /**
  * Add risk dispute to order comment
  *
  * @param \PayPal\Api\WebhookEvent $webhookEvent
  */
 protected function riskDisputeCreated(\PayPal\Api\WebhookEvent $webhookEvent)
 {
     //Add IPN comment about registered dispute
     $this->_order->addStatusHistoryComment($webhookEvent->getSummary())->setIsCustomerNotified(false)->save();
 }