Jump to content

Callum MacGregor

Clients
  • Posts

    80
  • Joined

  • Last visited

  • Days Won

    1

Community Answers

  1. Callum MacGregor's post in Commerce Fraud Rules was marked as the answer   
    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  
×
×
  • Create New...