Add ID / Test ID for payment processors to list - makes setup of IPNs much easier!
authorMatthew Wire (MJW Consulting) <mjw@mjwconsult.co.uk>
Wed, 20 Mar 2019 12:54:52 +0000 (12:54 +0000)
committerMatthew Wire (MJW Consulting) <mjw@mjwconsult.co.uk>
Wed, 20 Mar 2019 12:54:52 +0000 (12:54 +0000)
CRM/Admin/Page/PaymentProcessor.php
templates/CRM/Admin/Page/PaymentProcessor.tpl

index 78d688c1ffc8c318555890786c68907c3fe1aa1e..349030aa12a42f32efbc0da7bf6c778a365cc4df 100644 (file)
@@ -157,6 +157,7 @@ class CRM_Admin_Page_PaymentProcessor extends CRM_Core_Page_Basic {
         $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);
index 97699dffe35daeb247771db671c66d0189d3dbdc..f7543ba844cac021c685975a46c9725c3118f8f1 100644 (file)
    {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>