Merge pull request #9599 from colemanw/CRM-19812
[civicrm-core.git] / CRM / Core / Payment.php
index ee25a938677fff9ba9ab6c176103ac4b91df8d34..6d9bee416874947587fa17595a2163a5464a8c10 100644 (file)
@@ -366,7 +366,7 @@ abstract class CRM_Core_Payment {
   public function validatePaymentInstrument($values, &$errors) {
     CRM_Core_Form::validateMandatoryFields($this->getMandatoryFields(), $values, $errors);
     if ($this->_paymentProcessor['payment_type'] == 1) {
-      CRM_Core_Payment_Form::validateCreditCard($this->_paymentProcessor['id'], $values, $errors);
+      CRM_Core_Payment_Form::validateCreditCard($values, $errors, $this->_paymentProcessor['id']);
     }
   }