Module: ActiveMerchant::Billing::Integrations::SagePayForm

Defined in:
lib/active_merchant/billing/integrations/sage_pay_form.rb,
lib/active_merchant/billing/integrations/sage_pay_form/helper.rb,
lib/active_merchant/billing/integrations/sage_pay_form/return.rb,
lib/active_merchant/billing/integrations/sage_pay_form/encryption.rb,
lib/active_merchant/billing/integrations/sage_pay_form/notification.rb

Defined Under Namespace

Modules: Encryption Classes: Helper, Notification, Return

Class Method Summary collapse

Class Method Details

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



17
18
19
# File 'lib/active_merchant/billing/integrations/sage_pay_form.rb', line 17

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

.service_urlObject



21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/active_merchant/billing/integrations/sage_pay_form.rb', line 21

def self.service_url
  mode = ActiveMerchant::Billing::Base.integration_mode
  case mode
  when :production
    self.production_url    
  when :test
    self.test_url
  when :simulate
    self.simulate_url
  else
    raise StandardError, "Integration mode set to an invalid value: #{mode}"
  end
end