C# 클래스 Dwolla.Gateway.DwollaServerCheckoutApi

파일 보기 프로젝트 열기: justinsoliz/dwolla.net 1 사용 예제들

공개 메소드들

메소드 설명
DwollaServerCheckoutApi ( ) : System

This constructor will retrieve AppKey and AppSecret from your web.config/appSettings location. AppKey = AppSettings["dwolla_key"] (required), AppSecret = AppSettings["dwolla_secret"] (required), TestMode = AppSettings["dwolla_testmode"] (optional) default false.

DwollaServerCheckoutApi ( string appKey, string appSecret, bool testMode = false ) : System
GetCheckoutRedirectUrl ( DwollaCheckoutResponse response ) : string
SendCheckoutRequest ( DwollaCheckoutRequest checkoutRequest ) : DwollaCheckoutResponse

Executes a POST request to the Off-Site Gateway API.

VerifyCallbackAuthenticity ( Dwolla.Gateway.DwollaCallback receivedCallback ) : bool

보호된 메소드들

메소드 설명
ExecuteRestRequest ( DwollaCheckoutRequest checkoutRequest ) : DwollaCheckoutResponse

Executes the Dwolla Checkout REST Request. This method can be overridden if you wish to use a different REST library to execute the actual request.

메소드 상세

DwollaServerCheckoutApi() 공개 메소드

This constructor will retrieve AppKey and AppSecret from your web.config/appSettings location. AppKey = AppSettings["dwolla_key"] (required), AppSecret = AppSettings["dwolla_secret"] (required), TestMode = AppSettings["dwolla_testmode"] (optional) default false.
public DwollaServerCheckoutApi ( ) : System
리턴 System

DwollaServerCheckoutApi() 공개 메소드

public DwollaServerCheckoutApi ( string appKey, string appSecret, bool testMode = false ) : System
appKey string
appSecret string
testMode bool
리턴 System

ExecuteRestRequest() 보호된 메소드

Executes the Dwolla Checkout REST Request. This method can be overridden if you wish to use a different REST library to execute the actual request.
protected ExecuteRestRequest ( DwollaCheckoutRequest checkoutRequest ) : DwollaCheckoutResponse
checkoutRequest DwollaCheckoutRequest
리턴 DwollaCheckoutResponse

GetCheckoutRedirectUrl() 공개 메소드

public GetCheckoutRedirectUrl ( DwollaCheckoutResponse response ) : string
response DwollaCheckoutResponse
리턴 string

SendCheckoutRequest() 공개 메소드

Executes a POST request to the Off-Site Gateway API.
public SendCheckoutRequest ( DwollaCheckoutRequest checkoutRequest ) : DwollaCheckoutResponse
checkoutRequest DwollaCheckoutRequest A valid Dwolla checkout request.
리턴 DwollaCheckoutResponse

VerifyCallbackAuthenticity() 공개 메소드

public VerifyCallbackAuthenticity ( Dwolla.Gateway.DwollaCallback receivedCallback ) : bool
receivedCallback Dwolla.Gateway.DwollaCallback
리턴 bool