From: Andrew Engelbrecht Date: Fri, 24 Jul 2020 17:16:36 +0000 (-0400) Subject: block $5 donations on main donation page X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a19a95f2af5222d552e079569c53e70432094848;p=trustcommerce.git block $5 donations on main donation page this is the common factor for a recent wave of fraud attacks against our site. --- diff --git a/CRM/Core/Payment/TrustCommerce.php b/CRM/Core/Payment/TrustCommerce.php index 55e0d73..728404b 100644 --- a/CRM/Core/Payment/TrustCommerce.php +++ b/CRM/Core/Payment/TrustCommerce.php @@ -330,6 +330,10 @@ class CRM_Core_Payment_TrustCommerce extends CRM_Core_Payment { error_log("TrustCommerce: _isParamsBlacklisted() triggered by 230 Motley Dr address"); return TRUE; } + if($tc_params['amount'] == '500' && $this->_params[contributionPageID] == 14) { // main donation page + error_log("TrustCommerce: _isParamsBlacklisted() triggered by $5 donation amount on main donation page"); + return TRUE; + } return FALSE; }