public static function Braintree_CreditCard::expired in Commerce Braintree 7
returns a ResourceCollection of expired credit cards
Return value
object ResourceCollection
1 call to Braintree_CreditCard::expired()
- Braintree_CreditCardTest::testExpired in braintree_php/
tests/ integration/ CreditCardTest.php
File
- braintree_php/
lib/ Braintree/ CreditCard.php, line 137
Class
- Braintree_CreditCard
- Creates and manages Braintree CreditCards
Code
public static function expired() {
$response = Braintree_Http::post("/payment_methods/all/expired_ids");
$pager = array(
'className' => __CLASS__,
'classMethod' => 'fetchExpired',
'methodArgs' => array(),
);
return new Braintree_ResourceCollection($response, $pager);
}