projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
335466d
)
CRM-15407 - add fee amount to Dummy transaction.
author
Dave Greenberg
<dave@civicrm.org>
Fri, 5 Dec 2014 00:49:38 +0000
(16:49 -0800)
committer
Dave Greenberg
<dave@civicrm.org>
Fri, 5 Dec 2014 00:49:38 +0000
(16:49 -0800)
----------------------------------------
* CRM-15407:
https://issues.civicrm.org/jira/browse/CRM-15407
CRM/Core/Payment/Dummy.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Core/Payment/Dummy.php
b/CRM/Core/Payment/Dummy.php
index 94afa4ce7261322da646078d15cc9f68a2c1a726..498496bce01a0a92d0b6fdc2b79d17fd3a5892b0 100644
(file)
--- 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;
}