lib/active_merchant/billing/integrations/gestpay.rb in activemerchant-1.4.2 vs lib/active_merchant/billing/integrations/gestpay.rb in activemerchant-1.5.0
- old
+ new
@@ -1,15 +1,14 @@
# With help from Giovanni Intini and his code for RGestPay - http://medlar.it/it/progetti/rgestpay
-require File.dirname(__FILE__) + '/gestpay/common.rb'
-require File.dirname(__FILE__) + '/gestpay/helper.rb'
-require File.dirname(__FILE__) + '/gestpay/notification.rb'
-require File.dirname(__FILE__) + '/gestpay/return.rb'
-
module ActiveMerchant #:nodoc:
module Billing #:nodoc:
module Integrations #:nodoc:
module Gestpay
+ autoload :Return, File.dirname(__FILE__) + '/gestpay/return.rb'
+ autoload :Common, File.dirname(__FILE__) + '/gestpay/common.rb'
+ autoload :Helper, File.dirname(__FILE__) + '/gestpay/helper.rb'
+ autoload :Notification, File.dirname(__FILE__) + '/gestpay/notification.rb'
mattr_accessor :service_url
self.service_url = 'https://ecomm.sella.it/gestpay/pagam.asp'
def self.notification(post)