try {
$output = \PayPal\Api\WebhookEventType::subscribedEventTypes($webhookId, $apiContext);
} catch (Exception $ex) {
ResultPrinter::printError("List subscribed webhook event types", "WebhookEventTypeList", null, $webhookId, $ex);
exit(1);
}
ResultPrinter::printResult("List subscribed webhook event types", "WebhookEventTypeList",null, null, $output);
return $output;
Get Webhook Sample
This sample code demonstrate how you can get a webhook, as documented here at: https://developer.paypal.com/webapps/developer/docs/api/#get-a-webhook API used: GET /v1/notifications/webhooks/