C# Class Braintree.Transaction

A transaction returned by the Braintree Gateway
Afficher le fichier Open project: braintree/braintree_dotnet Class Usage Examples

Private Properties

Свойство Type Description
Transaction System

Méthodes publiques

Méthode Description
GetVaultBillingAddress ( ) : Address

Returns the current billing Address associated with this transaction if one exists

When retrieving a transaction from the gateway, the billing address associated with the transaction is returned in the response. If the billing address has been updated in the vault since the transaction occurred, this method can be used to retrieve the updated billing address.

GetVaultCreditCard ( ) : CreditCard

Returns the current CreditCard associated with this transaction if one exists

When retrieving a transaction from the gateway, the credit card used in the transaction is returned in the response. If the credit card record has been updated in the vault since the transaction occurred, this method can be used to retrieve the updated credit card information. This is typically useful in situations where a transaction fails, for example when a credit card expires, and a new transaction needs to be submitted once the new credit card information has been submitted.

GetVaultCustomer ( ) : Customer

Returns the current Customer associated with this transaction if one exists

When retrieving a transaction from the gateway, the customer associated with the transaction is returned in the response. If the customer record has been updated in the vault since the transaction occurred, this method can be used to retrieve the updated customer information.

GetVaultShippingAddress ( ) : Address

Returns the current shipping Address associated with this transaction if one exists

When retrieving a transaction from the gateway, the shipping address associated with the transaction is returned in the response. If the shipping address has been updated in the vault since the transaction occurred, this method can be used to retrieve the updated shipping address.

IsDisbursed ( ) : bool

Méthodes protégées

Méthode Description
Transaction ( NodeWrapper node, IBraintreeGateway gateway ) : System

Private Methods

Méthode Description
Transaction ( ) : System

Method Details

GetVaultBillingAddress() public méthode

Returns the current billing Address associated with this transaction if one exists
When retrieving a transaction from the gateway, the billing address associated with the transaction is returned in the response. If the billing address has been updated in the vault since the transaction occurred, this method can be used to retrieve the updated billing address.
public GetVaultBillingAddress ( ) : Address
Résultat Address

GetVaultCreditCard() public méthode

Returns the current CreditCard associated with this transaction if one exists
When retrieving a transaction from the gateway, the credit card used in the transaction is returned in the response. If the credit card record has been updated in the vault since the transaction occurred, this method can be used to retrieve the updated credit card information. This is typically useful in situations where a transaction fails, for example when a credit card expires, and a new transaction needs to be submitted once the new credit card information has been submitted.
public GetVaultCreditCard ( ) : CreditCard
Résultat CreditCard

GetVaultCustomer() public méthode

Returns the current Customer associated with this transaction if one exists
When retrieving a transaction from the gateway, the customer associated with the transaction is returned in the response. If the customer record has been updated in the vault since the transaction occurred, this method can be used to retrieve the updated customer information.
public GetVaultCustomer ( ) : Customer
Résultat Customer

GetVaultShippingAddress() public méthode

Returns the current shipping Address associated with this transaction if one exists
When retrieving a transaction from the gateway, the shipping address associated with the transaction is returned in the response. If the shipping address has been updated in the vault since the transaction occurred, this method can be used to retrieve the updated shipping address.
public GetVaultShippingAddress ( ) : Address
Résultat Address

IsDisbursed() public méthode

public IsDisbursed ( ) : bool
Résultat bool

Transaction() protected méthode

protected Transaction ( NodeWrapper node, IBraintreeGateway gateway ) : System
node NodeWrapper
gateway IBraintreeGateway
Résultat System