In X-Payments 2.1.x it's managed through
Settings -> General settings -> Credit card expiration date range option.
For the previous X-Payments versions follow this instruction:
http://help.x-cart.com/index.php?title=X-Payments:Troubleshooting#Customer_CC_expires_in_20 22_-_X-Payments_stops_at_2020