From 736afaffebbe55cf21f0772442526c21a518cc1b Mon Sep 17 00:00:00 2001 From: Ruben Rodriguez Date: Fri, 28 May 2021 11:14:21 +0200 Subject: [PATCH] Moved parameters filter to separate file --- CRM/Core/Payment/TrustCommerce.php | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/CRM/Core/Payment/TrustCommerce.php b/CRM/Core/Payment/TrustCommerce.php index 4645106..dff990d 100644 --- a/CRM/Core/Payment/TrustCommerce.php +++ b/CRM/Core/Payment/TrustCommerce.php @@ -334,20 +334,9 @@ class CRM_Core_Payment_TrustCommerce extends CRM_Core_Payment { // fclose("$test-tc-log"); //} - // quidam 18/Jun/2020 - // block brazil small donations - if(($tc_params['country'] == 'BR') && ($tc_params['amount'] < 2000)) { - error_log("TrustCommerce: _isParamsBlacklisted() triggered by BR country"); - return TRUE; - } - if($tc_params['address1'] == '230 Motley Dr') { - 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; - } + if(file_exists('ParamsBlacklist.php')) + include 'ParamsBlacklist.php'; + return FALSE; } -- 2.25.1