CRM-15555 QA fix - ensure email always assigned
[civicrm-core.git] / CRM / Core / Payment / Form.php
index 3f1c574b80c40a55b4f4aaf235fb21981b951fd6..34cff2171afe6a21d28a39a0ccc3d01ee40ecb62 100644 (file)
  */
 class CRM_Core_Payment_Form {
 
-  /**
-   * Add payment fields are depending on payment type
-   * @deprecated  - use the setPaymentFieldsByProcessor which leverages the processor to determine the fields
-   *
-   * @param int $type eg CRM_Core_Payment::PAYMENT_TYPE_DIRECT_DEBIT
-   * @param CRM_Core_Form $form
-   */
-  static public function setPaymentFieldsByType($type, &$form) {
-    if ($type & CRM_Core_Payment::PAYMENT_TYPE_DIRECT_DEBIT) {
-      CRM_Core_Payment_Form::setDirectDebitFields($form);
-    }
-    else {
-      CRM_Core_Payment_Form::setCreditCardFields($form);
-    }
-  }
-
 
   /**
    * Add payment fields are depending on payment processor
@@ -362,7 +346,7 @@ class CRM_Core_Payment_Form {
   }
 
   /**
-   * @param CRM_Core_Form $form
+   * @param CRM_Contribute_Form_Contribution| CRM_Contribute_Form_Contribution_Main|CRM_Member_Form_Membership $form
    * @param array $processor array of properties including 'object' as loaded from CRM_Financial_BAO_PaymentProcessor::getPaymentProcessors
    * @param bool $isBillingDataOptional
    *