Module: ActiveMerchant::Billing::Integrations::Nelnet
- Defined in:
- lib/active_merchant/billing/integrations/nelnet.rb,
lib/active_merchant/billing/integrations/nelnet/helper.rb,
lib/active_merchant/billing/integrations/nelnet/notification.rb
Defined Under Namespace
Classes: Helper, Notification
Class Method Summary collapse
- .notification(post) ⇒ Object
- .return(query_string) ⇒ Object
-
.service_url ⇒ Object
Returns the current service url.
Class Method Details
.notification(post) ⇒ Object
30 31 32 |
# File 'lib/active_merchant/billing/integrations/nelnet.rb', line 30 def self.notification(post) Notification.new(post) end |
.return(query_string) ⇒ Object
34 35 36 |
# File 'lib/active_merchant/billing/integrations/nelnet.rb', line 34 def self.return(query_string) Return.new(query_string) end |
.service_url ⇒ Object
Returns the current service url
18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/active_merchant/billing/integrations/nelnet.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 |