From 7175594fd1595f53c9c1a4b1709c62d54a94c128 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 13 Nov 2014 15:01:23 +1300 Subject: [PATCH] CRM-15555 remove check for payment processor validity in formRule - checks for this go in the preProcess loading of processors, not post-process (was highlighted as was causing an error in pay later but on review made more sense to review than fix --- CRM/Event/Form/Registration/Register.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/CRM/Event/Form/Registration/Register.php b/CRM/Event/Form/Registration/Register.php index 2d56816d13..9cd8a852ac 100644 --- a/CRM/Event/Form/Registration/Register.php +++ b/CRM/Event/Form/Registration/Register.php @@ -886,13 +886,6 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration { if (empty($self->_requireApproval) && !empty($fields['amount']) && $fields['amount'] > 0 && !isset($fields['payment_processor'])) { $errors['payment_processor'] = ts('Please select a Payment Method'); } - if (is_array($self->_paymentProcessor)) { - $payment = CRM_Core_Payment::singleton($self->_mode, $self->_paymentProcessor); - $error = $payment->checkConfig($self->_mode); - if ($error) { - $errors['_qf_default'] = $error; - } - } // return if this is express mode if ($self->_paymentProcessor && $self->_paymentProcessor['billing_mode'] & CRM_Core_Payment::BILLING_MODE_BUTTON -- 2.25.1