Jump to content

Commerce Fraud Rules


Go to solution Solved by Callum MacGregor,

Recommended Posts

  • Solution

User ID: 105995

The user is banned now, for obvious reasons, but wasn't at the time.

EDIT: I actually think I might know why. 

Maybe Maxmind changed their API results format, because in the code within Rule.php, the expected syntax is 'riskScore'. But in the maxmind API response, its 'risk_score'.

Rule.php:

			/* Score */
			if ( $this->maxmind )
			{				
				if ( !$this->_checkCondition( $maxMind->riskScore !== NULL ? $maxMind->riskScore : round( $maxMind->score * 10 ), $this->maxmind, $this->maxmind_unit ) )
				{
					return FALSE;
				}
			}

Maxmind API response for this particular transaction (redacted):

risk_score	:	99

 

Edited by Callum MacGregor
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...