From: Dave Greenberg Date: Thu, 2 Oct 2014 01:16:30 +0000 (-0700) Subject: CRM-15407 - add fee_amount and net_amount to Dummy processor. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2e3b0e836f59c1e58cd0e036977639c2c14ae403;p=civicrm-core.git CRM-15407 - add fee_amount and net_amount to Dummy processor. ---------------------------------------- * CRM-15407: https://issues.civicrm.org/jira/browse/CRM-15407 --- diff --git a/CRM/Core/Payment/Dummy.php b/CRM/Core/Payment/Dummy.php index 05d19d37e2..efaeeefd37 100644 --- a/CRM/Core/Payment/Dummy.php +++ b/CRM/Core/Payment/Dummy.php @@ -119,6 +119,10 @@ class CRM_Core_Payment_Dummy extends CRM_Core_Payment { $params['trxn_id'] = sprintf('live_%08d', $trxn_id); } $params['gross_amount'] = $params['amount']; + // Add a fee_amount so we can make sure fees are handled properly in underlying classes. + $params['fee_amount'] = 1.50; + $params['net_amount'] = $params['gross_amount'] - $params['fee_amount']; + return $params; }