If a user has a credit card saved in their account, which has already expired (i.e. it has an expiration date in the past), the user will be prompted to add a new card in order to complete the purchase.
We don't allow checkout with an expired card, as the payment would be declined anyway by the payment provider.