From: Ruben Rodriguez Date: Thu, 18 Jun 2020 18:00:26 +0000 (-0400) Subject: Temporary block for BR fraud X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=df9e7901f684e48303334a1d8dedd660e12b7e9b;p=trustcommerce.git Temporary block for BR fraud --- 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;