minfraud

API wrapper for MaxMind minFraud Service API

npm install minfraud
4 downloads in the last month

minFraud

How to Install

npm install minfraud

How to use

First, require minfraud:

var minfraud = require('minfraud');

Next, fill required user data:

var req = {i:"24.24.24.24",
    domain:"yahoo.com",
    city:"New York",
    postal:"11434",
    country:"US",
    custPhone:"212-242",
    bin:"549099",
    license_key:"YOUR_LICENSE_KEY_HERE" };

And make validation:

minfraud.validate(req, function(res){
  //Process response here
  console.log('riskScore: ' + res["riskScore"]);
});
npm loves you