BraintreeUnknownPaymentMethod

Manages Braintree UnknownPaymentMethod.

Defined (1)

The class is defined in the following location(s).

/includes/lib/Braintree/lib/Braintree/UnknownPaymentMethod.php  
  1. class UnknownPaymentMethod extends Base 
  2.  
  3.  
  4. /** 
  5. * factory method: returns an instance of UnknownPaymentMethod 
  6. * to the requesting method, with populated properties 
  7. * @ignore 
  8. * @return UnknownPaymentMethod 
  9. */ 
  10. public static function factory($attributes) 
  11. $instance = new self(); 
  12. $values = array_values($attributes); 
  13. $instance->_initialize(array_shift($values)); 
  14. return $instance; 
  15.  
  16. /** instance methods */ 
  17.  
  18. /** 
  19. * returns false if default is null or false 
  20. * @return boolean 
  21. */ 
  22. public function isDefault() 
  23. return $this->default; 
  24.  
  25. /** 
  26. * sets instance properties from an array of values 
  27. * @access protected 
  28. * @param array $unknownPaymentMethodAttribs array of unknownPaymentMethod data 
  29. * @return void 
  30. */ 
  31. protected function _initialize($unknownPaymentMethodAttribs) 
  32. // set the attributes 
  33. $this->imageUrl = 'https://assets.braintreegateway.com/payment_method_logo/unknown.png'; 
  34. $this->_attributes = $unknownPaymentMethodAttribs; 
  35.