PayPal\Api\Webhook::setEventTypes PHP Method

setEventTypes() public method

A list of up to ten events to which to subscribe your webhook. To subscribe to all events including new events as they are added, specify the asterisk (*) wildcard. To replace the event_types array, specify the * wildcard. To see all supported events, list available events.
public setEventTypes ( WebhookEventType[] $event_types )
$event_types WebhookEventType[]
    public function setEventTypes($event_types)
    {
        $this->event_types = $event_types;
        return $this;
    }