You are here

public function Braintree_Transaction_CreditCardDetails::__construct in Commerce Braintree 7

@ignore

Overrides Braintree_Instance::__construct

File

braintree_php/lib/Braintree/Transaction/CreditCardDetails.php, line 36

Class

Braintree_Transaction_CreditCardDetails
creates an instance of CreditCardDetails

Code

public function __construct($attributes) {
  parent::__construct($attributes);
  $this->_attributes['expirationDate'] = $this->expirationMonth . '/' . $this->expirationYear;
  $this->_attributes['maskedNumber'] = $this->bin . '******' . $this->last4;
}