more verbose fraud blocking log messages
authorAndrew Engelbrecht <andrew@fsf.org>
Fri, 24 Jul 2020 17:12:17 +0000 (13:12 -0400)
committerAndrew Engelbrecht <andrew@fsf.org>
Fri, 24 Jul 2020 17:12:17 +0000 (13:12 -0400)
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

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