Module: Vantiv::Paypage

Defined in:
lib/vantiv/paypage.rb

Class Method Summary collapse

Class Method Details

.api_jsObject



13
14
15
# File 'lib/vantiv/paypage.rb', line 13

def self.api_js
  "#{root_uri}/eProtect/litle-api2.js"
end

.jquery_jsObject



17
18
19
# File 'lib/vantiv/paypage.rb', line 17

def self.jquery_js
  "#{root_uri}/eProtect/js/jquery-1.11.2.min.js"
end

.payframe_jsObject



21
22
23
# File 'lib/vantiv/paypage.rb', line 21

def self.payframe_js
  "#{root_uri}/eProtect/js/payframe-client.min.js"
end

.root_uriObject



3
4
5
6
7
8
9
10
11
# File 'lib/vantiv/paypage.rb', line 3

def self.root_uri
  if Vantiv::Environment.production?
    "https://request.eprotect.vantivcnp.com"
  elsif Vantiv::Environment.postcertification?
    "https://request.eprotect.vantivpostlive.com"
  else
    "https://request.eprotect.vantivprelive.com"
  end
end