projects
/
trustcommerce.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d30429a
)
Temporary block for BR fraud
author
Ruben Rodriguez
<ruben@gnu.org>
Thu, 18 Jun 2020 18:00:26 +0000
(14:00 -0400)
committer
Ruben Rodriguez
<ruben@gnu.org>
Thu, 18 Jun 2020 18:00:26 +0000
(14:00 -0400)
CRM/Core/Payment/TrustCommerce.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Core/Payment/TrustCommerce.php
b/CRM/Core/Payment/TrustCommerce.php
index ea573eb6eb03f730ea5fc6f804d7f69ff5f9cb76..41a27059954f1a1334c9e7f37ac9b75dd212b7ca 100644
(file)
--- a/
CRM/Core/Payment/TrustCommerce.php
+++ b/
CRM/Core/Payment/TrustCommerce.php
@@
-320,6
+320,12
@@
class CRM_Core_Payment_TrustCommerce extends CRM_Core_Payment {
}
private function _isParamsBlacklisted($tc_params) {
+ // quidam 18/Jun/2020
+ // block brazil small donations
+ if(($tc_params['country'] == 'BR') && ($tc_params['amount'] < 2000)) {
+ error_log("TrustCommerce: _isParamsBlacklisted() triggered");
+ return TRUE;
+ }
if($tc_params['address1'] == '230 Motley Dr') {
error_log("TrustCommerce: _isParamsBlacklisted() triggered");
return TRUE;