C# 클래스 Dwolla.Checkout.DwollaServerCheckoutApi

파일 보기 프로젝트 열기: bchavez/Dwolla

공개 메소드들

메소드 설명
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
SendCheckoutRequest ( DwollaCheckoutRequest checkoutRequest ) : DwollaCheckoutResponse

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

VerifyAuthenticity ( DwollaCallback receivedCallback ) : bool
VerifyAuthenticity ( DwollaRedirect receivedRedirect ) : 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.

비공개 메소드들

메소드 설명
GetCheckoutRedirectUrl ( DwollaCheckoutResponse response ) : string

메소드 상세

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

SendCheckoutRequest() 공개 메소드

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

VerifyAuthenticity() 공개 메소드

public VerifyAuthenticity ( DwollaCallback receivedCallback ) : bool
receivedCallback DwollaCallback
리턴 bool

VerifyAuthenticity() 공개 메소드

public VerifyAuthenticity ( DwollaRedirect receivedRedirect ) : bool
receivedRedirect DwollaRedirect
리턴 bool