C# Class Braintree.TransactionGateway

Provides operations for sales, credits, refunds, voids, submitting for settlement, and searching for transactions in the vault
Inheritance: ITransactionGateway
Mostra file Open project: braintree/braintree_dotnet Class Usage Examples

Public Methods

Method Description
CancelRelease ( string id ) : Result
CloneTransaction ( string id, Braintree.TransactionCloneRequest cloneRequest ) : Result
Credit ( TransactionRequest request ) : Result
CreditTrData ( TransactionRequest trData, string redirectURL ) : string
Find ( string id ) : Transaction
HoldInEscrow ( string id ) : Result
Refund ( string id ) : Result
Refund ( string id, TransactionRefundRequest refundRequest ) : Result
Refund ( string id, decimal amount ) : Result
ReleaseFromEscrow ( string id ) : Result
Sale ( TransactionRequest request ) : Result
SaleTrData ( TransactionRequest trData, string redirectURL ) : string
Search ( TransactionSearchRequest query ) : ResourceCollection
SubmitForPartialSettlement ( string id, TransactionRequest request ) : Result
SubmitForPartialSettlement ( string id, decimal amount ) : Result
SubmitForSettlement ( string id ) : Result
SubmitForSettlement ( string id, TransactionRequest request ) : Result
SubmitForSettlement ( string id, decimal amount ) : Result
UpdateDetails ( string id, TransactionRequest request ) : Result
Void ( string id ) : Result

Protected Methods

Method Description
TransactionGateway ( IBraintreeGateway gateway ) : Braintree.Exceptions

Private Methods

Method Description
ConfirmTransparentRedirect ( string queryString ) : Result
FetchTransactions ( TransactionSearchRequest query, string ids ) : List
TransparentRedirectURLForCreate ( ) : string

Method Details

CancelRelease() public method

public CancelRelease ( string id ) : Result
id string
return Result

CloneTransaction() public method

public CloneTransaction ( string id, Braintree.TransactionCloneRequest cloneRequest ) : Result
id string
cloneRequest Braintree.TransactionCloneRequest
return Result

Credit() public method

public Credit ( TransactionRequest request ) : Result
request TransactionRequest
return Result

CreditTrData() public method

public CreditTrData ( TransactionRequest trData, string redirectURL ) : string
trData TransactionRequest
redirectURL string
return string

Find() public method

public Find ( string id ) : Transaction
id string
return Transaction

HoldInEscrow() public method

public HoldInEscrow ( string id ) : Result
id string
return Result

Refund() public method

public Refund ( string id ) : Result
id string
return Result

Refund() public method

public Refund ( string id, TransactionRefundRequest refundRequest ) : Result
id string
refundRequest TransactionRefundRequest
return Result

Refund() public method

public Refund ( string id, decimal amount ) : Result
id string
amount decimal
return Result

ReleaseFromEscrow() public method

public ReleaseFromEscrow ( string id ) : Result
id string
return Result

Sale() public method

public Sale ( TransactionRequest request ) : Result
request TransactionRequest
return Result

SaleTrData() public method

public SaleTrData ( TransactionRequest trData, string redirectURL ) : string
trData TransactionRequest
redirectURL string
return string

Search() public method

public Search ( TransactionSearchRequest query ) : ResourceCollection
query TransactionSearchRequest
return ResourceCollection

SubmitForPartialSettlement() public method

public SubmitForPartialSettlement ( string id, TransactionRequest request ) : Result
id string
request TransactionRequest
return Result

SubmitForPartialSettlement() public method

public SubmitForPartialSettlement ( string id, decimal amount ) : Result
id string
amount decimal
return Result

SubmitForSettlement() public method

public SubmitForSettlement ( string id ) : Result
id string
return Result

SubmitForSettlement() public method

public SubmitForSettlement ( string id, TransactionRequest request ) : Result
id string
request TransactionRequest
return Result

SubmitForSettlement() public method

public SubmitForSettlement ( string id, decimal amount ) : Result
id string
amount decimal
return Result

TransactionGateway() protected method

protected TransactionGateway ( IBraintreeGateway gateway ) : Braintree.Exceptions
gateway IBraintreeGateway
return Braintree.Exceptions

UpdateDetails() public method

public UpdateDetails ( string id, TransactionRequest request ) : Result
id string
request TransactionRequest
return Result

Void() public method

public Void ( string id ) : Result
id string
return Result