Module: OffsitePayments::Integrations::SagePayForm
- Defined in:
- lib/offsite_payments/integrations/sage_pay_form.rb
Defined Under Namespace
Modules: Encryption
Classes: Helper, Notification, Return
Class Method Summary
collapse
Class Method Details
.return(query_string, options = {}) ⇒ Object
11
12
13
|
# File 'lib/offsite_payments/integrations/sage_pay_form.rb', line 11
def self.return(query_string, options = {})
Return.new(query_string, options)
end
|
.service_url ⇒ Object
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# File 'lib/offsite_payments/integrations/sage_pay_form.rb', line 15
def self.service_url
mode = OffsitePayments.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
|