From df9e7901f684e48303334a1d8dedd660e12b7e9b Mon Sep 17 00:00:00 2001 From: Ruben Rodriguez Date: Thu, 18 Jun 2020 14:00:26 -0400 Subject: [PATCH] Temporary block for BR fraud --- CRM/Core/Payment/TrustCommerce.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CRM/Core/Payment/TrustCommerce.php b/CRM/Core/Payment/TrustCommerce.php index ea573eb..41a2705 100644 --- 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; -- 2.25.1