lib/active_merchant/billing/gateway.rb in activemerchant-1.28.0 vs lib/active_merchant/billing/gateway.rb in activemerchant-1.29.0
- old
+ new
@@ -123,14 +123,15 @@
# Initialize a new gateway.
#
# See the documentation for the gateway you will be using to make sure there are no other
# required options.
def initialize(options = {})
+ @options = options
end
# Are we running in test mode?
def test?
- Base.gateway_mode == :test
+ (@options[:test] || Base.test?)
end
private # :nodoc: all
def name