Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (25 sloc) 0.621 kb
module ActiveMerchant
module Fulfillment
class Service
include RequiresParameters
include PostsData
def initialize(options = {})
check_test_mode(options)
@options = {}
@options.update(options)
end
def test_mode?
false
end
def test?
@options[:test] || Base.mode == :test
end
private
def check_test_mode(options)
if options[:test] and not test_mode?
raise ArgumentError, 'Test mode is not supported by this gateway'
end
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.