Method |
Description |
|
all ( array $params, ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : WebhookEventList |
Lists webhook event notifications. Use query parameters to filter the response. |
|
get ( string $eventId, ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : WebhookEvent |
Retrieves the Webhooks event resource identified by event_id. Can be used to retrieve the payload for an event. |
|
getCreateTime ( ) : string |
The date and time when the webhook event notification was created. |
|
getEventType ( ) : string |
The event that triggered the webhook event notification. |
|
getEventVersion ( ) : string |
The version of the event. |
|
getId ( ) : string |
The ID of the webhook event notification. |
|
getResource ( ) : PayPalModel |
The resource that triggered the webhook event notification. |
|
getResourceType ( ) : string |
The name of the resource related to the webhook notification event. |
|
getSummary ( ) : string |
A summary description for the event notification. For example, A payment authorization was created. |
|
resend ( ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : WebhookEvent |
Resends a webhook event notification, by ID. Any pending notifications are not resent. |
|
setCreateTime ( string $create_time ) |
The date and time when the webhook event notification was created. |
|
setEventType ( string $event_type ) |
The event that triggered the webhook event notification. |
|
setEventVersion ( string $event_version ) |
The version of the event. |
|
setId ( string $id ) |
The ID of the webhook event notification. |
|
setResource ( PayPalModel $resource ) |
The resource that triggered the webhook event notification. |
|
setResourceType ( string $resource_type ) |
The name of the resource related to the webhook notification event. |
|
setSummary ( string $summary ) |
A summary description for the event notification. For example, A payment authorization was created. |
|
validateAndGetReceivedEvent ( string $body, ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : WebhookEvent |
Validates Received Event from Webhook, and returns the webhook event object. Because security verifications by verifying certificate chain is not enabled in PHP yet,
we need to fallback to default behavior of retrieving the ID attribute of the data, and make a separate GET call to PayPal APIs, to retrieve the data. |
|