C# 클래스 Microsoft.AspNet.WebHooks.PaypalWebHookReceiver

Provides an IWebHookReceiver implementation which supports WebHooks generated by Paypal using the Paypal .NET SDK, see https://www.nuget.org/packages/PayPal. Configure the Paypal WebHook settings using the web.config file as described in https://github.com/paypal/PayPal-NET-SDK/wiki/Webhook-Event-Validation. The corresponding WebHook URI is of the form 'https://<host>/api/webhooks/incoming/paypal'. For details about Paypal WebHooks, see https://developer.paypal.com/webapps/developer/docs/integration/direct/rest-webhooks-overview/.
상속: Microsoft.AspNet.WebHooks.WebHookReceiver
파일 보기 프로젝트 열기: aspnet/WebHooks

공개 메소드들

메소드 설명
PaypalWebHookReceiver ( ) : System

Initializes a new instance of the PaypalWebHookReceiver class.

ReceiveAsync ( string id, System.Web.Http.Controllers.HttpRequestContext context, HttpRequestMessage request ) : Task

보호된 메소드들

메소드 설명
ValidateReceivedEvent ( System.Web.Http.Controllers.HttpRequestContext context, NameValueCollection headers, string body ) : bool

Validates the received WebHook.

비공개 메소드들

메소드 설명
GetRequestHeaders ( HttpRequestMessage request ) : NameValueCollection
PaypalWebHookReceiver ( bool initialize ) : System

Initializes a new instance of the PaypalWebHookReceiver class. This constructor is intended for testing purposes.

메소드 상세

PaypalWebHookReceiver() 공개 메소드

Initializes a new instance of the PaypalWebHookReceiver class.
public PaypalWebHookReceiver ( ) : System
리턴 System

ReceiveAsync() 공개 메소드

public ReceiveAsync ( string id, System.Web.Http.Controllers.HttpRequestContext context, HttpRequestMessage request ) : Task
id string
context System.Web.Http.Controllers.HttpRequestContext
request System.Net.Http.HttpRequestMessage
리턴 Task

ValidateReceivedEvent() 보호된 메소드

Validates the received WebHook.
protected ValidateReceivedEvent ( System.Web.Http.Controllers.HttpRequestContext context, NameValueCollection headers, string body ) : bool
context System.Web.Http.Controllers.HttpRequestContext The current .
headers System.Collections.Specialized.NameValueCollection The request headers for the current .
body string The request body for the current .
리턴 bool