C# Class Dwolla.Gateway.DwollaServerCheckoutApi

Afficher le fichier Open project: justinsoliz/dwolla.net Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

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
Résultat System

DwollaServerCheckoutApi() public méthode

public DwollaServerCheckoutApi ( string appKey, string appSecret, bool testMode = false ) : System
appKey string
appSecret string
testMode bool
Résultat System

ExecuteRestRequest() protected méthode

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
Résultat DwollaCheckoutResponse

GetCheckoutRedirectUrl() public méthode

public GetCheckoutRedirectUrl ( DwollaCheckoutResponse response ) : string
response DwollaCheckoutResponse
Résultat string

SendCheckoutRequest() public méthode

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

VerifyCallbackAuthenticity() public méthode

public VerifyCallbackAuthenticity ( Dwolla.Gateway.DwollaCallback receivedCallback ) : bool
receivedCallback Dwolla.Gateway.DwollaCallback
Résultat bool