X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FContribution.php;fp=api%2Fv3%2FContribution.php;h=a873073d85f434d040aa29970300fd545f6c8081;hb=e913987d303f2c51e60be23820fc8d1031e7eadd;hp=67f8ba8c310eb4bbd09ee97d841ec46790b13237;hpb=67073fa22c6d549ba028b89e425025f3ec7276b8;p=civicrm-core.git diff --git a/api/v3/Contribution.php b/api/v3/Contribution.php index 67f8ba8c31..a873073d85 100644 --- a/api/v3/Contribution.php +++ b/api/v3/Contribution.php @@ -300,7 +300,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); }