*/
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
}
/**
- * @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
*