From f3a63d1e965e0d864daa6c3eec7df46b026e1e2f Mon Sep 17 00:00:00 2001 From: eileenmcnaugton Date: Wed, 26 Aug 2015 06:40:29 +1200 Subject: [PATCH] CRM-16914 fix reference to payment_instrument_id --- CRM/Contribute/Form/Contribution/Confirm.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CRM/Contribute/Form/Contribution/Confirm.php b/CRM/Contribute/Form/Contribution/Confirm.php index d5f22c64d9..2dda394e91 100644 --- a/CRM/Contribute/Form/Contribution/Confirm.php +++ b/CRM/Contribute/Form/Contribution/Confirm.php @@ -1785,8 +1785,7 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr $isMonetary = !empty($form->_values['is_monetary']); if ($isMonetary) { if (empty($paymentParams['is_pay_later'])) { - // @todo look up payment_instrument_id on payment processor table. - $contributionParams['payment_instrument_id'] = 1; + $contributionParams['payment_instrument_id'] = $form->_paymentProcessor['payment_instrument_id']; } } $membershipContribution = CRM_Contribute_Form_Contribution_Confirm::processFormContribution($form, -- 2.25.1