C# 클래스 PayPal.Api.WebhookEvent

A webhook event notification.

See PayPal Developer documentation for more information.

상속: PayPalRelationalObject
파일 보기 프로젝트 열기: paypal/PayPal-NET-SDK 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ConvertAuthAlgorithmHeaderToHashAlgorithmName string

공개 메소드들

메소드 설명
Get ( APIContext apiContext, string eventId ) : WebhookEvent

Shows details for a webhook event notification, by ID.

List ( APIContext apiContext, int pageSize = 10, string startTime = "", string endTime = "" ) : WebhookEventList

Retrieves the list of Webhooks events resources for the application associated with token. The developers can use it to see list of past webhooks events.

Resend ( APIContext apiContext ) : WebhookEvent

Resends the Webhooks event resource identified by event_id.

Resend ( APIContext apiContext, string webhookEventId ) : WebhookEvent

Resends the Webhooks event resource identified by event_id.

ValidateReceivedEvent ( APIContext apiContext, NameValueCollection requestHeaders, string requestBody, string webhookId = "" ) : bool

Validates a received webhook event by checking the signature of the event and verifying the event originated from PayPal.

비공개 메소드들

메소드 설명
ConvertAuthAlgorithmHeaderToHashAlgorithmName ( string authAlgorithmHeader ) : string

Converts the algorithm name specified by authAlgorithmHeader into a hash algorithm name recognized by System.Security.Cryptography.CryptoConfig.

메소드 상세

Get() 공개 정적인 메소드

Shows details for a webhook event notification, by ID.
public static Get ( APIContext apiContext, string eventId ) : WebhookEvent
apiContext APIContext APIContext used for the API call.
eventId string The ID of the webhook event notification for which to show details.
리턴 WebhookEvent

List() 공개 정적인 메소드

Retrieves the list of Webhooks events resources for the application associated with token. The developers can use it to see list of past webhooks events.
public static List ( APIContext apiContext, int pageSize = 10, string startTime = "", string endTime = "" ) : WebhookEventList
apiContext APIContext APIContext used for the API call.
pageSize int Number of items to be returned by a GET operation
startTime string Resource creation time that indicates the start of a range of results.
endTime string Resource creation time that indicates the end of a range of results.
리턴 WebhookEventList

Resend() 공개 메소드

Resends the Webhooks event resource identified by event_id.
public Resend ( APIContext apiContext ) : WebhookEvent
apiContext APIContext APIContext used for the API call.
리턴 WebhookEvent

Resend() 공개 정적인 메소드

Resends the Webhooks event resource identified by event_id.
public static Resend ( APIContext apiContext, string webhookEventId ) : WebhookEvent
apiContext APIContext APIContext used for the API call.
webhookEventId string ID of the webhook event to resend.
리턴 WebhookEvent

ValidateReceivedEvent() 공개 정적인 메소드

Validates a received webhook event by checking the signature of the event and verifying the event originated from PayPal.
public static ValidateReceivedEvent ( APIContext apiContext, NameValueCollection requestHeaders, string requestBody, string webhookId = "" ) : bool
apiContext APIContext APIContext containing any configuration settings to be used when validating the event.
requestHeaders System.Collections.Specialized.NameValueCollection A collection of HTTP request headers included with the received webhook event.
requestBody string The body of the received HTTP request.
webhookId string ID of the webhook resource associated with this webhook event. If not specified, it is assumed the ID is provided via the Config property of the parameter.
리턴 bool