Moved parameters filter to separate file
authorRuben Rodriguez <ruben@gnu.org>
Fri, 28 May 2021 09:14:21 +0000 (11:14 +0200)
committerRuben Rodriguez <ruben@gnu.org>
Fri, 28 May 2021 09:14:21 +0000 (11:14 +0200)
CRM/Core/Payment/TrustCommerce.php

index 464510610689803b40ba8ec94f49f594d9c60cc5..dff990de2acba7c890dac6d618b97f35abf8b8e2 100644 (file)
@@ -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;
   }