From 279b28d01505e80b03f9c60bcf8293a0efb2dcad Mon Sep 17 00:00:00 2001 From: "Matthew Wire (MJW Consulting)" Date: Wed, 20 Mar 2019 12:54:52 +0000 Subject: [PATCH] Add ID / Test ID for payment processors to list - makes setup of IPNs much easier! --- CRM/Admin/Page/PaymentProcessor.php | 1 + templates/CRM/Admin/Page/PaymentProcessor.tpl | 22 +++++++++++-------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/CRM/Admin/Page/PaymentProcessor.php b/CRM/Admin/Page/PaymentProcessor.php index 78d688c1ff..349030aa12 100644 --- a/CRM/Admin/Page/PaymentProcessor.php +++ b/CRM/Admin/Page/PaymentProcessor.php @@ -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); diff --git a/templates/CRM/Admin/Page/PaymentProcessor.tpl b/templates/CRM/Admin/Page/PaymentProcessor.tpl index 97699dffe3..f7543ba844 100644 --- a/templates/CRM/Admin/Page/PaymentProcessor.tpl +++ b/templates/CRM/Admin/Page/PaymentProcessor.tpl @@ -39,22 +39,26 @@ {include file="CRM/common/enableDisableApi.tpl"} - - - - - - - + + + + + + + + + {foreach from=$rows item=row} + + - - + -- 2.25.1
{ts}Name{/ts}{ts}Processor Type{/ts}{ts}Description{/ts}{ts}Financial Account{/ts}{ts}Enabled?{/ts}{ts}Default?{/ts}{ts}ID{/ts}{ts}Test ID{/ts}{ts}Name{/ts}{ts}Processor Type{/ts}{ts}Description{/ts}{ts}Financial Account{/ts}{ts}Enabled?{/ts}{ts}Default?{/ts}
{$row.id}{$row.test_id} {$row.name} {$row.payment_processor_type} {$row.description} {if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if} + {if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if} {if $row.is_default eq 1}{ts}Default{/ts}{/if}  {$row.action|replace:'xx':$row.id}