From 26ad2b72764e308e0d8baabf4c7594d4dd837fb2 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 11 Sep 2014 21:44:16 -0400 Subject: [PATCH] CRM-15286 - Set correct payment instrument in api contribution.transact --- api/v3/Contribution.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v3/Contribution.php b/api/v3/Contribution.php index cd9f8f79d3..1385765a32 100644 --- a/api/v3/Contribution.php +++ b/api/v3/Contribution.php @@ -295,7 +295,7 @@ function civicrm_api3_contribution_transact($params) { return CRM_Core_Error::createApiError($last_error['message']); } } - + $params['payment_instrument_id'] = CRM_Core_DAO::getFieldValue('CRM_Financial_DAO_PaymentProcessorType', $paymentProcessor['payment_processor_type_id'], 'payment_type') == 1 ? 'Credit Card' : 'Debit Card'; return civicrm_api('contribution', 'create', $params); } /** -- 2.25.1