C# Класс Dwolla.Gateway.DwollaServerCheckoutApi

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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