module Vantiv::Paypage

Public Class Methods

api_js() click to toggle source
# File lib/vantiv/paypage.rb, line 13
def self.api_js
  "#{root_uri}/eProtect/litle-api2.js"
end
jquery_js() click to toggle source
# File lib/vantiv/paypage.rb, line 17
def self.jquery_js
  "#{root_uri}/eProtect/js/jquery-1.11.2.min.js"
end
payframe_js() click to toggle source
# File lib/vantiv/paypage.rb, line 21
def self.payframe_js
  "#{root_uri}/eProtect/js/payframe-client.min.js"
end
root_uri() click to toggle source
# 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