Module: OffsitePayments::Integrations::AuthorizeNetSim

Defined in:
lib/offsite_payments/integrations/authorize_net_sim.rb

Defined Under Namespace

Classes: Helper, Notification

Class Method Summary collapse

Class Method Details

.notification(post) ⇒ Object


24
25
26
# File 'lib/offsite_payments/integrations/authorize_net_sim.rb', line 24

def self.notification(post)
  Notification.new(post)
end

.return(query_string) ⇒ Object


28
29
30
# File 'lib/offsite_payments/integrations/authorize_net_sim.rb', line 28

def self.return(query_string)
  Return.new(query_string)
end

.service_urlObject


12
13
14
15
16
17
18
19
20
21
22
# File 'lib/offsite_payments/integrations/authorize_net_sim.rb', line 12

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