Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ID / Test ID for payment processors to list - makes setup of IPNs much easier! #13869

Merged
merged 1 commit into from
Mar 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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