From e2ffb688d08189ee34730afce52cb0997ed11d6b Mon Sep 17 00:00:00 2001 From: Alan Dixon Date: Wed, 23 Sep 2020 21:41:32 +0000 Subject: [PATCH] fix hard-coded processor id! thanks @cmmadmin --- CRM/Iats/Form/IATSOneTimeCharge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Iats/Form/IATSOneTimeCharge.php b/CRM/Iats/Form/IATSOneTimeCharge.php index 8e0eab8a..f7707d5b 100644 --- a/CRM/Iats/Form/IATSOneTimeCharge.php +++ b/CRM/Iats/Form/IATSOneTimeCharge.php @@ -143,7 +143,7 @@ protected function processCreditCardCustomer($values) { throw new Exception($error); } try { - $paymentProcessor = civicrm_api3('PaymentProcessor', 'getsingle', array('id' => 3)); + $paymentProcessor = civicrm_api3('PaymentProcessor', 'getsingle', array('id' => $payment_processor_id)); } catch (Exception $e) { $error = E::ts('Unexpected error getting payment processor information for recurring schedule id %1', array(1 => $contribution_recur_id));