See also the ResourceCollection response object.

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

PHP
$collection = $gateway->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).