See also the ResourceCollection response object.

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

Ruby
Copy
Copied
collection = gateway.credit_card.expiring_between(Time.mktime(2018, 1), Time.mktime(2018, 12))
This code snippet now uses gateway instance methods instead of class-level methods. Learn more.
Arguments
start_date required, String

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

end_date 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