See also the ResourceCollection response object.

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

PHP
Copy
Copied
$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).

Still have questions?

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