BraintreeMerchant

The Paid Memberships Pro Braintree Merchant class.

Defined (1)

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

/includes/lib/Braintree/lib/Braintree/Merchant.php  
  1. class Merchant extends Base 
  2. protected function _initialize($attribs) 
  3. $this->_attributes = $attribs; 
  4.  
  5. $merchantAccountArray = []; 
  6. if (isset($attribs['merchantAccounts'])) { 
  7. foreach ($attribs['merchantAccounts'] AS $merchantAccount) { 
  8. $merchantAccountArray[] = MerchantAccount::factory($merchantAccount); 
  9. $this->_set('merchantAccounts', $merchantAccountArray); 
  10.  
  11. public static function factory($attributes) 
  12. $instance = new self(); 
  13. $instance->_initialize($attributes); 
  14. return $instance; 
  15.  
  16. /** 
  17. * returns a string representation of the merchant 
  18. * @return string 
  19. */ 
  20. public function __toString() 
  21. return __CLASS__ . '[' . 
  22. Util::attributesToString($this->_attributes) .']';