Temporary block for BR fraud
authorRuben Rodriguez <ruben@gnu.org>
Thu, 18 Jun 2020 18:00:26 +0000 (14:00 -0400)
committerRuben Rodriguez <ruben@gnu.org>
Thu, 18 Jun 2020 18:00:26 +0000 (14:00 -0400)
CRM/Core/Payment/TrustCommerce.php

index ea573eb6eb03f730ea5fc6f804d7f69ff5f9cb76..41a27059954f1a1334c9e7f37ac9b75dd212b7ca 100644 (file)
@@ -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;