Class: Hamburglar::Gateways::MaxMind::TelephoneVerification

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

Overview

The TelephoneVerification class handles fraud verification through MaxMind’s Telephone Verification API

See: www.maxmind.com/app/telephone_api

Constant Summary collapse

API_URL =
"https://www.maxmind.com"
API_PATH =
"/app/telephone_http"

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 = {}) ⇒ TelephoneVerification

Returns a new instance of TelephoneVerification.



76
77
78
79
# File 'lib/hamburglar/gateways/max_mind.rb', line 76

def initialize(params = {})
  super
  self.params[:l] = self.params.delete(:license_key) if self.params[:license_key]
end