class Braintree_Transaction_CreditCardDetails in Commerce Braintree 7
creates an instance of CreditCardDetails
@package Braintree @subpackage Transaction @copyright 2010 Braintree Payment Solutions
@property-read string $bin @property-read string $cardType @property-read string $expirationDate @property-read string $expirationMonth @property-read string $expirationYear @property-read string $issuerLocation @property-read string $last4 @property-read string $maskedNumber @property-read string $token @uses Braintree_Instance inherits methods
Hierarchy
Expanded class hierarchy of Braintree_Transaction_CreditCardDetails
File
- braintree_php/
lib/ Braintree/ Transaction/ CreditCardDetails.php, line 29
View source
class Braintree_Transaction_CreditCardDetails extends Braintree_Instance {
protected $_attributes = array();
/**
* @ignore
*/
public function __construct($attributes) {
parent::__construct($attributes);
$this->_attributes['expirationDate'] = $this->expirationMonth . '/' . $this->expirationYear;
$this->_attributes['maskedNumber'] = $this->bin . '******' . $this->last4;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Braintree_Instance:: |
private | function | initializes instance properties from the keys/values of an array @ignore @access protected | |
Braintree_Instance:: |
public | function | returns private/nonexistent instance properties @access public | |
Braintree_Instance:: |
public | function | create a printable representation of the object as: ClassName[property=value, property=value] | 1 |
Braintree_Transaction_CreditCardDetails:: |
protected | property | ||
Braintree_Transaction_CreditCardDetails:: |
public | function |
@ignore Overrides Braintree_Instance:: |