civicrm/civicrm-core — pull request #4697 by adixon (2014-12-10 21:20:14+00:00)
Title: CRM-15714 CiviContribute convert validateCreditCard to validatePaymentIn...

...strument

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.