Class: Hamburglar::Gateways::MaxMind::MinFraud

Inherits:
Base
  • Object
show all
Defined in:
lib/hamburglar/gateways/max_mind.rb

Overview

The MinFraud class handles fraud verification through MaxMind's minFraud API.

See: www.maxmind.com/app/ccv

Constant Summary

API_URL =
"https://minfraud2.maxmind.com"
API_PATH =
"/app/ccv2r"

Instance Attribute Summary

Attributes inherited from Base

#errors, #params, #response

Instance Method Summary collapse

Methods inherited from Base

#submit

Methods inherited from Base

required_params, set_required_params, #submit, #validate, #validate!

Constructor Details

#initialize(params = {}) ⇒ MinFraud



59
60
61
62
# File 'lib/hamburglar/gateways/max_mind.rb', line 59

def initialize(params = {})
  params[:i] = params.delete(:ip) if params[:ip]
  super params
end