You are here

public function Braintree_Transaction::vaultCreditCard in Commerce Braintree 7

File

braintree_php/lib/Braintree/Transaction.php, line 561

Class

Braintree_Transaction
Creates and manages transactions

Code

public function vaultCreditCard() {
  $token = $this->creditCardDetails->token;
  if (empty($token)) {
    return null;
  }
  else {
    return Braintree_CreditCard::find($token);
  }
}