module OffsitePayments::Integrations::PayULatam

Constants

QUERIES_API_LIVE_URL
QUERIES_API_TEST_URL
QUERY_COMMANDS

Public Class Methods

helper(order, account, options = {}) click to toggle source
# File lib/offsite_payments/integrations/pay_u_latam.rb, line 46
def self.helper(order, account, options = {})
  Helper.new(order, account, options)
end
queries_url() click to toggle source
# File lib/offsite_payments/integrations/pay_u_latam.rb, line 34
def self.queries_url
  mode = OffsitePayments.mode
  case mode
    when :production
      QUERIES_API_LIVE_URL
    when :test
      QUERIES_API_TEST_URL
    else
      raise StandardError, "Integration mode set to an invalid value: #{mode}"
  end
end
service_url() click to toggle source
# File lib/offsite_payments/integrations/pay_u_latam.rb, line 22
def self.service_url
  mode = OffsitePayments.mode
  case mode
    when :production
      self.production_url
    when :test
      self.test_url
    else
      raise StandardError, "Integration mode set to an invalid value: #{mode}"
  end
end