From fda7dc3772b3c3b21a2a9adcc4c7bc3f3c9c72aa Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Fri, 24 Jul 2020 13:12:17 -0400 Subject: [PATCH] more verbose fraud blocking log messages this helps us know which rule triggered the blacklist for that transaction. this helps us know whether our rules are working properly. --- CRM/Core/Payment/TrustCommerce.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Core/Payment/TrustCommerce.php b/CRM/Core/Payment/TrustCommerce.php index 41a2705..55e0d73 100644 --- a/CRM/Core/Payment/TrustCommerce.php +++ b/CRM/Core/Payment/TrustCommerce.php @@ -323,11 +323,11 @@ class CRM_Core_Payment_TrustCommerce extends CRM_Core_Payment { // quidam 18/Jun/2020 // block brazil small donations if(($tc_params['country'] == 'BR') && ($tc_params['amount'] < 2000)) { - error_log("TrustCommerce: _isParamsBlacklisted() triggered"); + error_log("TrustCommerce: _isParamsBlacklisted() triggered by BR country"); return TRUE; } if($tc_params['address1'] == '230 Motley Dr') { - error_log("TrustCommerce: _isParamsBlacklisted() triggered"); + error_log("TrustCommerce: _isParamsBlacklisted() triggered by 230 Motley Dr address"); return TRUE; } return FALSE; -- 2.25.1