public static function fetch($query, $ids)
 {
     $criteria = array();
     foreach ($query as $term) {
         $criteria[$term->name] = $term->toparam();
     }
     $criteria["ids"] = Braintree_CustomerSearch::ids()->in($ids)->toparam();
     $response = Braintree_Http::post('/customers/advanced_search', array('search' => $criteria));
     return Braintree_Util::extractattributeasarray($response['customers'], 'customer');
 }
Пример #2
0
 public function fetch($query, $ids)
 {
     $criteria = array();
     foreach ($query as $term) {
         $criteria[$term->name] = $term->toparam();
     }
     $criteria["ids"] = Braintree_CustomerSearch::ids()->in($ids)->toparam();
     $path = $this->_config->merchantPath() . '/customers/advanced_search';
     $response = $this->_http->post($path, array('search' => $criteria));
     return Braintree_Util::extractattributeasarray($response['customers'], 'customer');
 }