Braintree.Transaction.GetVaultCreditCard C# (CSharp) Метод

GetVaultCreditCard() публичный Метод

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
Результат CreditCard
        public virtual CreditCard GetVaultCreditCard()
        {
            if (CreditCard.Token == null) return null;

            return new CreditCardGateway(Gateway).Find(CreditCard.Token);
        }