civicrm/civicrm-core — pull request #4766 by adixon (2014-12-22 21:31:41+00:00)
Title: CRM-15714 CiviContribute convert validateCreditCard to validatePaymentInstrument

The validateCreditCard function is too restrictive for both SWIPE and DirectDebit payment processors. Convert those calls to a new validatePaymentInstrument that only invokes validateCreditCard for credit card payment processors, and also allows SWIPE processors to override it.