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));