$form->addElement('text', 'contribution_recur_processor_id', ts('Processor ID'), CRM_Core_DAO::getAttribute('CRM_Contribute_DAO_ContributionRecur', 'processor_id'));
$form->addElement('text', 'contribution_recur_trxn_id', ts('Transaction ID'), CRM_Core_DAO::getAttribute('CRM_Contribute_DAO_ContributionRecur', 'trxn_id'));
+ $paymentProcessorParams = [
+ 'return' => ["id", "name", 'is_test'],
+ ];
+ $paymentProcessors = civicrm_api3('PaymentProcessor', 'get', $paymentProcessorParams);
+ foreach ($paymentProcessors['values'] as $key => $value) {
+ $paymentProcessorOpts[$key] = $value['name'] . ($value['is_test'] ? ' (Test)' : '');
+ }
+ $form->add('select', 'contribution_recur_payment_processor_id', ts('Payment Processor ID'), $paymentProcessorOpts, FALSE, ['class' => 'crm-select2', 'multiple' => 'multiple']);
+
CRM_Core_BAO_Query::addCustomFormFields($form, array('ContributionRecur'));
}
return;
case 'contribution_recur_processor_id':
+ case 'contribution_recur_payment_processor_id':
case 'contribution_recur_trxn_id':
$fieldName = str_replace('contribution_recur_', '', $name);
$query->_where[$grouping][] = CRM_Contact_BAO_Query::buildClause("civicrm_contribution_recur.{$fieldName}",
</td>
</tr>
<tr>
- <td>{ts}Recurring Contribution Status{/ts}</td>
+ <td>{ts}Status{/ts}</td>
<td></td>
<td col='span2'>
{$form.contribution_recur_contribution_status_id.html|crmAddClass:twenty}
</td>
</tr>
+ <tr>
+ <td>{ts}Payment Processor{/ts}</td>
+ <td></td>
+ <td col='span2'>
+ {$form.contribution_recur_payment_processor_id.html}
+ </td>
+ </tr>
+ <tr>
+ <td>{ts}Transaction ID{/ts}</td>
+ <td></td>
+ <td col='span2'>
+ {$form.contribution_recur_trxn_id.html}
+ </td>
+ </tr>
+ <tr>
+ <td>{ts}Processor ID{/ts}</td>
+ <td></td>
+ <td col='span2'>
+ {$form.contribution_recur_processor_id.html}
+ </td>
+ </tr>
{if $contributionRecurGroupTree}
<tr>
<td colspan="4">