See also the Braintree_ResourceCollection response object.

Returns a collection of Braintree_CreditCard objects that expire between the specified dates.

PHP
Copy
Copied
$collection = \Braintree\CreditCard::expiringBetween(
    mktime(0, 0, 0, 1, 1, 2018),
    mktime(23, 59, 59, 12, 31, 2018)
);
Arguments
startDate required, string

The minimum expiration date of cards returned in the search (inclusive).

endDate required, string

The maximum expiration date of cards returned in the search (inclusive).

Still have questions?

If you can’t find an answer, contact our Support team.