You are here

public function Braintree_Transaction::vaultCustomer in Commerce Braintree 7

File

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

Class

Braintree_Transaction
Creates and manages transactions

Code

public function vaultCustomer() {
  $customerId = $this->customerDetails->id;
  if (empty($customerId)) {
    return null;
  }
  else {
    return Braintree_Customer::find($customerId);
  }
}