Skip to content

Commit

Permalink
Merge pull request #13869 from mattwire/paymentprocessorid
Browse files Browse the repository at this point in the history
Add ID / Test ID for payment processors to list - makes setup of IPNs much easier!
  • Loading branch information
eileenmcnaughton authored Mar 20, 2019
2 parents e057916 + 279b28d commit bfd3f0f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
1 change: 1 addition & 0 deletions CRM/Admin/Page/PaymentProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ public function browse($action = NULL) {
$dao->id
);
$paymentProcessor[$dao->id]['financialAccount'] = CRM_Contribute_PseudoConstant::getRelationalFinancialAccount($dao->id, NULL, 'civicrm_payment_processor', 'financial_account_id.name');
$paymentProcessor[$dao->id]['test_id'] = CRM_Financial_BAO_PaymentProcessor::getTestProcessorId($dao->id);
}

$this->assign('rows', $paymentProcessor);
Expand Down
22 changes: 13 additions & 9 deletions templates/CRM/Admin/Page/PaymentProcessor.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,26 @@
{include file="CRM/common/enableDisableApi.tpl"}
<table class="selector row-highlight">
<tr class="columnheader">
<th >{ts}Name{/ts}</th>
<th >{ts}Processor Type{/ts}</th>
<th >{ts}Description{/ts}</th>
<th >{ts}Financial Account{/ts}</th>
<th >{ts}Enabled?{/ts}</th>
<th >{ts}Default?{/ts}</th>
<th ></th>
<th>{ts}ID{/ts}</th>
<th>{ts}Test ID{/ts}</th>
<th>{ts}Name{/ts}</th>
<th>{ts}Processor Type{/ts}</th>
<th>{ts}Description{/ts}</th>
<th>{ts}Financial Account{/ts}</th>
<th>{ts}Enabled?{/ts}</th>
<th>{ts}Default?{/ts}</th>
<th></th>
</tr>
{foreach from=$rows item=row}
<tr id="payment_processor-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
<td class="crmf-id center">{$row.id}</td>
<td class="crmf-test_id center">{$row.test_id}</td>
<td class="crmf-name">{$row.name}</td>
<td class="crmf-payment_processor_type">{$row.payment_processor_type}</td>
<td class="crmf-description">{$row.description}</td>
<td class="crmf-financial_account_id">{$row.financialAccount}</td>
<td class="crmf-is_active">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
<td class="crmf-is_default">
<td class="crmf-is_active center">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
<td class="crmf-is_default center">
{if $row.is_default eq 1}<img src="{$config->resourceBase}i/check.gif" alt="{ts}Default{/ts}"/>{/if}&nbsp;
</td>
<td>{$row.action|replace:'xx':$row.id}</td>
Expand Down

0 comments on commit bfd3f0f

Please sign in to comment.