Merge pull request #4789 from totten/master-test-tx
[civicrm-core.git] / CRM / Event / Form / Participant.php
index 91d23d6ac398b9524ad4592463c686b2308a9a6f..ff6b9e507f10a16a44bd5f0145e63ae61ca60ec2 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -821,7 +821,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment
 
     if (!empty($values['payment_processor_id'])) {
       // make sure that credit card number and cvv are valid
-      CRM_Core_Payment_Form::validatePaymentInstrument($values, $errorMsg, $self);
+      CRM_Core_Payment_Form::validateCreditCard($values, $errorMsg);
     }
 
     if (!empty($values['record_contribution'])) {