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');
 }
예제 #3
0
 public static function fetchExpired($ids)
 {
     $response = Braintree_Http::post("/payment_methods/all/expired", array('search' => array('ids' => $ids)));
     return Braintree_Util::extractattributeasarray($response['paymentMethods'], 'creditCard');
 }
 public function fetchExpired($ids)
 {
     $path = $this->_config->merchantPath() . "/payment_methods/all/expired";
     $response = $this->_http->post($path, array('search' => array('ids' => $ids)));
     return Braintree_Util::extractattributeasarray($response['paymentMethods'], 'creditCard');
 }