X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FEvent%2FForm%2FRegistration%2FRegister.php;h=cc63b7954775c66ec8b8a18246c5e4d2f52c91e5;hb=df0d084d2f97bf12a241e1e23809802e4ac8f5ed;hp=780081484ed70d6c16a12c60db3b73fbbef4b112;hpb=f7e8909f1b775277788bcb39d700f059d40be7f3;p=civicrm-core.git diff --git a/CRM/Event/Form/Registration/Register.php b/CRM/Event/Form/Registration/Register.php index 780081484e..cc63b79547 100644 --- a/CRM/Event/Form/Registration/Register.php +++ b/CRM/Event/Form/Registration/Register.php @@ -930,7 +930,7 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration { if (!empty($self->_paymentFields)) { CRM_Core_Form::validateMandatoryFields($self->_paymentFields, $fields, $errors); } - CRM_Core_Payment_Form::validateCreditCard($fields, $errors); + CRM_Core_Payment_Form::validatePaymentInstrument($self->_paymentProcessorID, $fields, $errors, $self); } foreach (CRM_Contact_BAO_Contact::$_greetingTypes as $greeting) {