CRM-15714 CiviContribute convert validateCreditCard to validatePaymentInstrument
authoradixon <alan.g.dixon@gmail.com>
Mon, 22 Dec 2014 21:27:36 +0000 (16:27 -0500)
committeradixon <alan.g.dixon@gmail.com>
Mon, 22 Dec 2014 21:27:36 +0000 (16:27 -0500)
commite10911e99aac12c9173be26475011c8960f90dd2
treef67d081ce9cc8981ec5dd6dbdff0a9e201e19059
parente44431fee3e48e503e8500ace6206f2d25c8956f
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.
CRM/Contribute/Form/Contribution/Main.php
CRM/Contribute/Form/UpdateBilling.php
CRM/Core/Payment.php
CRM/Core/Payment/Form.php
CRM/Event/Cart/Form/Checkout/Payment.php
CRM/Event/Form/Participant.php
CRM/Event/Form/Registration/AdditionalParticipant.php
CRM/Event/Form/Registration/Register.php
CRM/Member/Form/Membership.php