Sha256: fc1f9753f358abb2c539a871255e844a64b4616139c863fac90959f32a82c61c
Contents?: true
Size: 1.15 KB
Versions: 1
Compression:
Stored size: 1.15 KB
Contents
require File.dirname(__FILE__) + '/nelnet/helper.rb' require File.dirname(__FILE__) + '/nelnet/notification.rb' module ActiveMerchant #:nodoc: module Billing #:nodoc: module Integrations #:nodoc: module Nelnet # Overwrite this if you want to change the Paypal test url mattr_accessor :test_url self.test_url = 'http://localhost:3000/gateway/payment' # Overwrite this if you want to change the Paypal production url mattr_accessor :production_url self.production_url = 'https://prod.nelnet.com/' # Returns the current service url 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 def self.notification(post) Notification.new(post) end def self.return(query_string) Return.new(query_string) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activemerchant-nsp-1.27.0 | lib/active_merchant/billing/integrations/nelnet.rb |