You are here

public static function Braintree_CreditCard::fetchExpired in Commerce Braintree 7

File

braintree_php/lib/Braintree/CreditCard.php, line 149

Class

Braintree_CreditCard
Creates and manages Braintree CreditCards

Code

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');
}