https://www.mediawiki.org/wiki/Special:Code/MediaWiki/113679
Revision: 113679
Author: khorn
Date: 2012-03-12 22:28:25 +0000 (Mon, 12 Mar 2012)
Log Message:
-----------
MFT r113677
Modified Paths:
--------------
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/custom_filters.body.php
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/filters/functions/functions.body.php
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/filters/minfraud/minfraud.body.php
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/filters/referrer/referrer.body.php
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/filters/source/source.body.php
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/minfraud/minfraud.body.php
Property Changed:
----------------
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/custom_filters.body.php
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/filters/functions/functions.body.php
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/filters/minfraud/minfraud.body.php
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/filters/referrer/referrer.body.php
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/filters/source/source.body.php
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/minfraud/minfraud.body.php
Modified:
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/custom_filters.body.php
===================================================================
---
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/custom_filters.body.php
2012-03-12 22:14:43 UTC (rev 113678)
+++
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/custom_filters.body.php
2012-03-12 22:28:25 UTC (rev 113679)
@@ -8,15 +8,28 @@
* The action to take based on a transaction's riskScore is determined
by
* $action_ranges. This is built assuming a range of possible risk
scores
* as 0-100, although you can probably bend this as needed.
- * @var public int
+ * Due to the increased complexity introduced by custom filters,
$risk_score
+ * will now be represented as an array of scores, with the name of the
+ * score's source in the keys, to promote our ability to tell what the
heck
+ * is going on.
+ * @var private array()
*/
- public $risk_score;
+ private $risk_score;
/**
* Define the action to take for a given $risk_score
* @var public array
*/
public $action_ranges;
+
+ /**
+ * Define a standard log prefix with contribution tracking id, and
order id,
+ * to use as a prefix in all our logging.
+ * TODO: Move this out to the gateway adapter once we have time to
determine
+ * that changing the way we log things isn't going to break our utils.
+ * @var public function
+ */
+ public $log_msg_prefix;
/**
* A container for an instance of self
@@ -27,7 +40,9 @@
parent::__construct( $gateway_adapter ); //gateway_adapter is
set in there.
// load user action ranges and risk score
$this->action_ranges = $this->gateway_adapter->getGlobal(
'CustomFiltersActionRanges' );
- $this->risk_score = $this->gateway_adapter->getGlobal(
'CustomFiltersRiskScore' );
+ $this->risk_score['initial'] =
$this->gateway_adapter->getGlobal( 'CustomFiltersRiskScore' );
+ $this->log_msg_prefix =
$this->gateway_adapter->getData_Unstaged_Escaped( 'contribution_tracking_id' );
+ $this->log_msg_prefix .= ':' .
$this->gateway_adapter->getData_Unstaged_Escaped( 'order_id' ) . ' ';
}
/**
@@ -36,18 +51,55 @@
* @return string The action to take
*/
public function determineAction() {
+ $risk_score = $this->getRiskScore();
// possible risk scores are between 0 and 100
- if ( $this->risk_score < 0 )
- $this->risk_score = 0;
- if ( $this->risk_score > 100 )
- $this->risk_score = 100;
+ if ( $risk_score < 0 )
+ $risk_score = 0;
+ if ( $risk_score > 100 )
+ $risk_score = 100;
foreach ( $this->action_ranges as $action => $range ) {
- if ( $this->risk_score >= $range[0] &&
$this->risk_score <= $range[1] ) {
+ if ( $risk_score >= $range[0] && $risk_score <=
$range[1] ) {
return $action;
}
}
}
+
+ public function addRiskScore( $score, $source ){
+ if ( !is_numeric( $score ) ){
+ throw new MWException(__FUNCTION__ . " Cannot add
$score to risk score (not numeric). Source: $source" );
+ }
+ if ( !is_array( $this->risk_score ) ){
+ if ( is_numeric( $this->risk_score ) ){
+ $this->risk_score['unknown'] =
(int)$this->risk_score;
+ } else {
+ $this->risk_score = array();
+ }
+ }
+ $this->gateway_adapter->log( $this->log_msg_prefix . "$source
added a score of $score", LOG_INFO, '_fraud' );
+ $this->risk_score[$source] = $score;
+ }
+
+
+ public function getRiskScore(){
+ if ( !is_array( $this->risk_score ) ){
+ if ( !is_numeric( $this->risk_score ) ){
+ throw new MWException(__FUNCTION__ . "
risk_score is neither numeric, nor an array." . print_r( $this->risk_score,
true ) );
+ } else {
+ $this->gateway_adapter->log(
$this->log_msg_prefix . "returning numeric score " . $this->risk_score ,
LOG_INFO, '_fraud' );
+ return $this->risk_score;
+ }
+ } else {
+ $total = 0;
+ foreach ( $this->risk_score as $score ){
+ $total += $score;
+ }
+ $this->gateway_adapter->log( $this->log_msg_prefix .
"Returning total of $total " . print_r( $this->risk_score, true) , LOG_INFO,
'_fraud' );
+ return $total;
+ }
+ }
+
+
/**
* Run the transaction through the custom filters
*/
@@ -58,7 +110,7 @@
// error_log("Filter validation says " . $localAction);
$this->gateway_adapter->setValidationAction( $localAction );
- $log_msg = '"' . $localAction . "\"\t\"" . $this->risk_score .
"\"";
+ $log_msg = '"' . $localAction . "\"\t\"" .
$this->getRiskScore() . "\"";
$this->log( $this->gateway_adapter->getData_Unstaged_Escaped(
'contribution_tracking_id' ), 'Filtered', $log_msg );
return TRUE;
}
Property changes on:
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/custom_filters.body.php
___________________________________________________________________
Modified: svn:mergeinfo
-
/branches/fundraising/extensions/DonationInterface/extras/custom_filters/custom_filters.body.php:98262-100243
/branches/fundraising/extensions/DonationInterface/payflowpro_gateway/extras/custom_filters/custom_filters.body.php:95444-98261
/trunk/extensions/DonationInterface/extras/custom_filters/custom_filters.body.php:90286,100119-101026,101060,101063-101064,101073,101076,101335,101553,101557,101561,101785,101823,101826,101837,101870-101872,101882,101890,101910,101947,101949-101951,101955-101960,101964-101966,102030,102032-102033,102047,102050-102052,102054,102056,102058,102065,102081,102085-102087,102118,102120,102124-102125,102127,102134,102140,102147,102151-102152,102155-102156,102186,102188,102338,102342,102576-102579,102581,102681,102685,102689,102736,102752,102763,102805,102809-102810,102812,102819-102824,102826,102828-102833,102835-102836,102841,102872,103024,103076,103244,103246,103288,103385,103411,103413,103416,103435,103481,103491,103499-103501,103503,103506,103515,103519,103591,103607-103608,103633,103680,103775,103784,103837,103839,103863,103866,105938
+
/branches/fundraising/extensions/DonationInterface/extras/custom_filters/custom_filters.body.php:98262-100243
/branches/fundraising/extensions/DonationInterface/payflowpro_gateway/extras/custom_filters/custom_filters.body.php:95444-98261
/trunk/extensions/DonationInterface/extras/custom_filters/custom_filters.body.php:90286,100119-101026,101060,101063-101064,101073,101076,101335,101553,101557,101561,101785,101823,101826,101837,101870-101872,101882,101890,101910,101947,101949-101951,101955-101960,101964-101966,102030,102032-102033,102047,102050-102052,102054,102056,102058,102065,102081,102085-102087,102118,102120,102124-102125,102127,102134,102140,102147,102151-102152,102155-102156,102186,102188,102338,102342,102576-102579,102581,102681,102685,102689,102736,102752,102763,102805,102809-102810,102812,102819-102824,102826,102828-102833,102835-102836,102841,102872,103024,103076,103244,103246,103288,103385,103411,103413,103416,103435,103481,103491,103499-103501,103503,103506,103515,103519,103591,103607-103608,103633,103680,103775,103784,103837,103839,103863,103866,105938,113677
Modified:
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/filters/functions/functions.body.php
===================================================================
---
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/filters/functions/functions.body.php
2012-03-12 22:14:43 UTC (rev 113678)
+++
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/filters/functions/functions.body.php
2012-03-12 22:28:25 UTC (rev 113679)
@@ -37,7 +37,7 @@
throw new MWException( "Filter
functions are returning somekinda nonsense." );
}
- $this->cfo->risk_score += $score;
+ $this->cfo->addRiskScore( $score,
$function_name );
}
}
Property changes on:
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/filters/functions/functions.body.php
___________________________________________________________________
Added: svn:mergeinfo
+
/branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/filters/functions/functions.body.php:99568
/branches/fundraising/extensions/DonationInterface/extras/custom_filters/filters/functions/functions.body.php:98263-100243
/trunk/extensions/DonationInterface/extras/custom_filters/filters/functions/functions.body.php:75657-77440,77442-79147,79149-79286,79288-79296,79298-79299,79301-79303,79305-86440,90286,92825,96120-96121,96125,97945-99042,99045-99408,99503,99555,99568,100119-101026,101060,101063-101064,101073,101076,101163,101335,101553,101557,101561,101785,101823,101826,101837,101870-101872,101882,101890,101910,101947,101949-101951,101955-101960,101964-101966,102030,102032-102033,102047,102050-102052,102054,102056,102058,102065,102081,102085-102087,102118,102120,102124-102125,102127,102134,102140,102147,102151-102152,102155-102156,102186,102188,102318,102332,102338,102341-102342,102345,102424-102425,102445,102463,102467-102468,102470,102476,102479-102480,102549-102550,102576-102581,102590,102594,102611,102639,102664,102681,102685,102689,102698,102700-102703,102707,102711-102712,102729,102736,102752,102763,102805,102809-102810,102812,102819-102824,102826,102828-102833,102835-102836,102841,102872,103024,103076,103244,103246,103288,103385,103411,103413,103416,103435,103481,103491,103499-103501,103503,103506,103515,103519,103591,103607-103608,103633,103680,103775,103784,103837,103839,103863,103866,113677
Modified:
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/filters/minfraud/minfraud.body.php
===================================================================
---
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/filters/minfraud/minfraud.body.php
2012-03-12 22:14:43 UTC (rev 113678)
+++
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/filters/minfraud/minfraud.body.php
2012-03-12 22:28:25 UTC (rev 113679)
@@ -21,7 +21,7 @@
$this->query_minfraud( $minfraud_query );
- $custom_filter_object->risk_score +=
$this->minfraud_response['riskScore'];
+ $custom_filter_object->addRiskScore(
$this->minfraud_response['riskScore'], 'minfraud_filter' );
// Write the query/response to the log
$this->log_query( $minfraud_query, '' );
Property changes on:
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/filters/minfraud/minfraud.body.php
___________________________________________________________________
Modified: svn:mergeinfo
-
/branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/filters/minfraud/minfraud.body.php:99568
/branches/fundraising/extensions/DonationInterface/extras/custom_filters/filters/minfraud/minfraud.body.php:98263-100243
/trunk/extensions/DonationInterface/extras/custom_filters/filters/minfraud/minfraud.body.php:75657-77440,77442-79147,79149-79286,79288-79296,79298-79299,79301-79303,79305-86440,90286,92825,96120-96121,96125,97945-99042,99045-99408,99503,99555,99568,100119-101026,101060,101063-101064,101073,101076,101163,101335,101553,101557,101561,101785,101823,101826,101837,101870-101872,101882,101890,101910,101947,101949-101951,101955-101960,101964-101966,102030,102032-102033,102047,102050-102052,102054,102056,102058,102065,102081,102085-102087,102118,102120,102124-102125,102127,102134,102140,102147,102151-102152,102155-102156,102186,102188,102318,102332,102338,102341-102342,102345,102424-102425,102445,102463,102467-102468,102470,102476,102479-102480,102549-102550,102576-102581,102590,102594,102611,102639,102664,102681,102685,102689,102698,102700-102703,102707,102711-102712,102729,102736,102752,102763,102805,102809-102810,102812,102819-102824,102826,102828-102833,102835-102836,102841,102872,103024,103076,103244,103246,103288,103385,103411,103413,103416,103435,103481,103491,103499-103501,103503,103506,103515,103519,103591,103607-103608,103633,103680,103775,103784,103837,103839,103863,103866,105938
+
/branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/filters/minfraud/minfraud.body.php:99568
/branches/fundraising/extensions/DonationInterface/extras/custom_filters/filters/minfraud/minfraud.body.php:98263-100243
/trunk/extensions/DonationInterface/extras/custom_filters/filters/minfraud/minfraud.body.php:75657-77440,77442-79147,79149-79286,79288-79296,79298-79299,79301-79303,79305-86440,90286,92825,96120-96121,96125,97945-99042,99045-99408,99503,99555,99568,100119-101026,101060,101063-101064,101073,101076,101163,101335,101553,101557,101561,101785,101823,101826,101837,101870-101872,101882,101890,101910,101947,101949-101951,101955-101960,101964-101966,102030,102032-102033,102047,102050-102052,102054,102056,102058,102065,102081,102085-102087,102118,102120,102124-102125,102127,102134,102140,102147,102151-102152,102155-102156,102186,102188,102318,102332,102338,102341-102342,102345,102424-102425,102445,102463,102467-102468,102470,102476,102479-102480,102549-102550,102576-102581,102590,102594,102611,102639,102664,102681,102685,102689,102698,102700-102703,102707,102711-102712,102729,102736,102752,102763,102805,102809-102810,102812,102819-102824,102826,102828-102833,102835-102836,102841,102872,103024,103076,103244,103246,103288,103385,103411,103413,103416,103435,103481,103491,103499-103501,103503,103506,103515,103519,103591,103607-103608,103633,103680,103775,103784,103837,103839,103863,103866,105938,113677
Modified:
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/filters/referrer/referrer.body.php
===================================================================
---
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/filters/referrer/referrer.body.php
2012-03-12 22:14:43 UTC (rev 113678)
+++
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/filters/referrer/referrer.body.php
2012-03-12 22:28:25 UTC (rev 113679)
@@ -31,12 +31,12 @@
* these will need to be included in your custom regex
patterns.
*/
if ( preg_match( "$regex", $referrer ) ) {
- $this->cfo->risk_score += $risk_score_modifier;
+ $this->cfo->addRiskScore( $risk_score_modifier,
'referrer' );
// log it
$log_msg = "\"" . addslashes( $referrer ) .
"\"";
$log_msg .= "\t\"" . addslashes( $regex ) .
"\"";
- $log_msg .= "\t\"" . $this->cfo->risk_score .
"\"";
+ $log_msg .= "\t\"" . $this->cfo->getRiskScore()
. "\"";
$this->log(
$this->gateway_adapter->getData_Unstaged_Escaped( 'contribution_tracking_id' ),
'Filter: Referrer', $log_msg
);
Property changes on:
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/filters/referrer/referrer.body.php
___________________________________________________________________
Modified: svn:mergeinfo
-
/branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/filters/referrer/referrer.body.php:99568
/branches/fundraising/extensions/DonationInterface/extras/custom_filters/filters/referrer/referrer.body.php:98263-100243
/trunk/extensions/DonationInterface/extras/custom_filters/filters/referrer/referrer.body.php:75657-77440,77442-79147,79149-79286,79288-79296,79298-79299,79301-79303,79305-86440,90286,92825,96120-96121,96125,97945-99042,99045-99408,99503,99555,99568,100119-101026,101060,101063-101064,101073,101076,101163,101335,101553,101557,101561,101785,101823,101826,101837,101870-101872,101882,101890,101910,101947,101949-101951,101955-101960,101964-101966,102030,102032-102033,102047,102050-102052,102054,102056,102058,102065,102081,102085-102087,102118,102120,102124-102125,102127,102134,102140,102147,102151-102152,102155-102156,102186,102188,102318,102332,102338,102341-102342,102345,102424-102425,102445,102463,102467-102468,102470,102476,102479-102480,102549-102550,102576-102581,102590,102594,102611,102639,102664,102681,102685,102689,102698,102700-102703,102707,102711-102712,102729,102736,102752,102763,102805,102809-102810,102812,102819-102824,102826,102828-102833,102835-102836,102841,102872,103024,103076,103244,103246,103288,103385,103411,103413,103416,103435,103481,103491,103499-103501,103503,103506,103515,103519,103591,103607-103608,103633,103680,103775,103784,103837,103839,103863,103866,105938
+
/branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/filters/referrer/referrer.body.php:99568
/branches/fundraising/extensions/DonationInterface/extras/custom_filters/filters/referrer/referrer.body.php:98263-100243
/trunk/extensions/DonationInterface/extras/custom_filters/filters/referrer/referrer.body.php:75657-77440,77442-79147,79149-79286,79288-79296,79298-79299,79301-79303,79305-86440,90286,92825,96120-96121,96125,97945-99042,99045-99408,99503,99555,99568,100119-101026,101060,101063-101064,101073,101076,101163,101335,101553,101557,101561,101785,101823,101826,101837,101870-101872,101882,101890,101910,101947,101949-101951,101955-101960,101964-101966,102030,102032-102033,102047,102050-102052,102054,102056,102058,102065,102081,102085-102087,102118,102120,102124-102125,102127,102134,102140,102147,102151-102152,102155-102156,102186,102188,102318,102332,102338,102341-102342,102345,102424-102425,102445,102463,102467-102468,102470,102476,102479-102480,102549-102550,102576-102581,102590,102594,102611,102639,102664,102681,102685,102689,102698,102700-102703,102707,102711-102712,102729,102736,102752,102763,102805,102809-102810,102812,102819-102824,102826,102828-102833,102835-102836,102841,102872,103024,103076,103244,103246,103288,103385,103411,103413,103416,103435,103481,103491,103499-103501,103503,103506,103515,103519,103591,103607-103608,103633,103680,103775,103784,103837,103839,103863,103866,105938,113677
Modified:
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/filters/source/source.body.php
===================================================================
---
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/filters/source/source.body.php
2012-03-12 22:14:43 UTC (rev 113678)
+++
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/filters/source/source.body.php
2012-03-12 22:28:25 UTC (rev 113679)
@@ -31,12 +31,12 @@
* These will need to be included in your custom regex
patterns.
*/
if ( preg_match( "$regex", $source ) ) {
- $this->cfo->risk_score += $risk_score_modifier;
+ $this->cfo->addRiskScore( $risk_score_modifier,
'source' );
// log it
$log_msg = "\"" . addslashes( $source ) . "\"";
$log_msg .= "\t\"" . addslashes( $regex ) .
"\"";
- $log_msg .= "\t\"" . $this->cfo->risk_score .
"\"";
+ $log_msg .= "\t\"" . $this->cfo->getRiskScore()
. "\"";
$this->log(
$this->gateway_adapter->getData_Unstaged_Escaped( 'contribution_tracking_id' ),
'Filter: Source', $log_msg
);
Property changes on:
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/filters/source/source.body.php
___________________________________________________________________
Modified: svn:mergeinfo
-
/branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/filters/source/source.body.php:99568
/branches/fundraising/extensions/DonationInterface/extras/custom_filters/filters/source/source.body.php:98263-100243
/trunk/extensions/DonationInterface/extras/custom_filters/filters/source/source.body.php:75657-77440,77442-79147,79149-79286,79288-79296,79298-79299,79301-79303,79305-86440,90286,92825,96120-96121,96125,97945-99042,99045-99408,99503,99555,99568,100119-101026,101060,101063-101064,101073,101076,101163,101335,101553,101557,101561,101785,101823,101826,101837,101870-101872,101882,101890,101910,101947,101949-101951,101955-101960,101964-101966,102030,102032-102033,102047,102050-102052,102054,102056,102058,102065,102081,102085-102087,102118,102120,102124-102125,102127,102134,102140,102147,102151-102152,102155-102156,102186,102188,102318,102332,102338,102341-102342,102345,102424-102425,102445,102463,102467-102468,102470,102476,102479-102480,102549-102550,102576-102581,102590,102594,102611,102639,102664,102681,102685,102689,102698,102700-102703,102707,102711-102712,102729,102736,102752,102763,102805,102809-102810,102812,102819-102824,102826,102828-102833,102835-102836,102841,102872,103024,103076,103244,103246,103288,103385,103411,103413,103416,103435,103481,103491,103499-103501,103503,103506,103515,103519,103591,103607-103608,103633,103680,103775,103784,103837,103839,103863,103866,105938
+
/branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/custom_filters/filters/source/source.body.php:99568
/branches/fundraising/extensions/DonationInterface/extras/custom_filters/filters/source/source.body.php:98263-100243
/trunk/extensions/DonationInterface/extras/custom_filters/filters/source/source.body.php:75657-77440,77442-79147,79149-79286,79288-79296,79298-79299,79301-79303,79305-86440,90286,92825,96120-96121,96125,97945-99042,99045-99408,99503,99555,99568,100119-101026,101060,101063-101064,101073,101076,101163,101335,101553,101557,101561,101785,101823,101826,101837,101870-101872,101882,101890,101910,101947,101949-101951,101955-101960,101964-101966,102030,102032-102033,102047,102050-102052,102054,102056,102058,102065,102081,102085-102087,102118,102120,102124-102125,102127,102134,102140,102147,102151-102152,102155-102156,102186,102188,102318,102332,102338,102341-102342,102345,102424-102425,102445,102463,102467-102468,102470,102476,102479-102480,102549-102550,102576-102581,102590,102594,102611,102639,102664,102681,102685,102689,102698,102700-102703,102707,102711-102712,102729,102736,102752,102763,102805,102809-102810,102812,102819-102824,102826,102828-102833,102835-102836,102841,102872,103024,103076,103244,103246,103288,103385,103411,103413,103416,103435,103481,103491,103499-103501,103503,103506,103515,103519,103591,103607-103608,103633,103680,103775,103784,103837,103839,103863,103866,105938,113677
Modified:
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/minfraud/minfraud.body.php
===================================================================
---
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/minfraud/minfraud.body.php
2012-03-12 22:14:43 UTC (rev 113678)
+++
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/minfraud/minfraud.body.php
2012-03-12 22:28:25 UTC (rev 113679)
@@ -71,6 +71,7 @@
$minfraud_query = $this->build_query(
$this->gateway_adapter->getData_Unstaged_Escaped() );
$this->query_minfraud( $minfraud_query );
$localAction = $this->determine_action(
$this->minfraud_response['riskScore'] );
+ $this->gateway_adapter->log( $this->log_msg_prefix . "Minfraud
Standalone setting the action to $localAction.", LOG_INFO, '_fraud' );
$this->gateway_adapter->setValidationAction( $localAction );
// reset the data hash
Property changes on:
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/minfraud/minfraud.body.php
___________________________________________________________________
Modified: svn:mergeinfo
-
/branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/minfraud/minfraud.body.php:99568
/branches/fundraising/extensions/DonationInterface/extras/minfraud/minfraud.body.php:98263-100243
/trunk/extensions/DonationInterface/extras/minfraud/minfraud.body.php:75657-77440,77442-79147,79149-79286,79288-79296,79298-79299,79301-79303,79305-86440,90286,92825,96120-96121,96125,97945-99042,99045-99408,99503,99555,99568,100119-101026,101060,101063-101064,101073,101076,101163,101335,101553,101557,101561,101785,101823,101826,101837,101870-101872,101882,101890,101910,101947,101949-101951,101955-101960,101964-101966,102030,102032-102033,102047,102050-102052,102054,102056,102058,102065,102081,102085-102087,102118,102120,102124-102125,102127,102134,102140,102147,102151-102152,102155-102156,102186,102188,102318,102332,102338,102341-102342,102345,102424-102425,102445,102463,102467-102468,102470,102476,102479-102480,102549-102550,102576-102581,102590,102594,102611,102639,102664,102681,102685,102689,102698,102700-102703,102707,102711-102712,102729,102736,102752,102763,102805,102809-102810,102812,102819-102824,102826,102828-102833,102835-102836,102841,102872,103024,103076,103244,103246,103288,103385,103411,103413,103416,103435,103481,103491,103499-103501,103503,103506,103515,103519,103591,103607-103608,103633,103680,103775,103784,103837,103839,103863,103866,105938
+
/branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/extras/minfraud/minfraud.body.php:99568
/branches/fundraising/extensions/DonationInterface/extras/minfraud/minfraud.body.php:98263-100243
/trunk/extensions/DonationInterface/extras/minfraud/minfraud.body.php:75657-77440,77442-79147,79149-79286,79288-79296,79298-79299,79301-79303,79305-86440,90286,92825,96120-96121,96125,97945-99042,99045-99408,99503,99555,99568,100119-101026,101060,101063-101064,101073,101076,101163,101335,101553,101557,101561,101785,101823,101826,101837,101870-101872,101882,101890,101910,101947,101949-101951,101955-101960,101964-101966,102030,102032-102033,102047,102050-102052,102054,102056,102058,102065,102081,102085-102087,102118,102120,102124-102125,102127,102134,102140,102147,102151-102152,102155-102156,102186,102188,102318,102332,102338,102341-102342,102345,102424-102425,102445,102463,102467-102468,102470,102476,102479-102480,102549-102550,102576-102581,102590,102594,102611,102639,102664,102681,102685,102689,102698,102700-102703,102707,102711-102712,102729,102736,102752,102763,102805,102809-102810,102812,102819-102824,102826,102828-102833,102835-102836,102841,102872,103024,103076,103244,103246,103288,103385,103411,103413,103416,103435,103481,103491,103499-103501,103503,103506,103515,103519,103591,103607-103608,103633,103680,103775,103784,103837,103839,103863,103866,105938,113677
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs