See also the ResourceCollection response object.

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

Node.js
let before = new Date('2018-01-01');
let after = new Date('2018-12-31');

gateway.creditCard.expiringBetween(before, after, function (err, result) {
});
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).