Module: ActiveMerchant::Billing::Integrations::PayDollar

Defined in:
lib/active_merchant/billing/integrations/pay_dollar.rb,
lib/active_merchant/billing/integrations/pay_dollar/helper.rb,
lib/active_merchant/billing/integrations/pay_dollar/return.rb

Defined Under Namespace

Classes: Helper, Return

Class Method Summary collapse

Class Method Details

.return(query_string, options = {}) ⇒ Object



14
15
16
# File 'lib/active_merchant/billing/integrations/pay_dollar.rb', line 14

def self.return(query_string, options = {})
  Return.new(query_string, options)
end

.service_urlObject



18
19
20
21
22
23
24
25
26
27
28
# File 'lib/active_merchant/billing/integrations/pay_dollar.rb', line 18

def self.service_url
  mode = ActiveMerchant::Billing::Base.integration_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