C# Class Dwolla.Gateway.DwollaServerCheckoutApi

Datei anzeigen Open project: justinsoliz/dwolla.net Class Usage Examples

Public Methods

Method Description
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

Protected Methods

Method Description
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.

Method Details

DwollaServerCheckoutApi() public method

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
return System

DwollaServerCheckoutApi() public method

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

ExecuteRestRequest() protected method

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
return DwollaCheckoutResponse

GetCheckoutRedirectUrl() public method

public GetCheckoutRedirectUrl ( DwollaCheckoutResponse response ) : string
response DwollaCheckoutResponse
return string

SendCheckoutRequest() public method

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

VerifyCallbackAuthenticity() public method

public VerifyCallbackAuthenticity ( Dwolla.Gateway.DwollaCallback receivedCallback ) : bool
receivedCallback Dwolla.Gateway.DwollaCallback
return bool