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)
);
This code snippet now uses gateway instance methods instead of class-level methods. Learn more.
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).