Module: ActiveMerchant::Billing::Base
- Defined in:
- lib/active_merchant/billing/base.rb
Class Method Summary collapse
- .mode=(mode) ⇒ Object
-
.test? ⇒ Boolean
A check to see if we’re in test mode.
Class Method Details
.mode=(mode) ⇒ Object
13 14 15 16 |
# File 'lib/active_merchant/billing/base.rb', line 13 def self.mode=(mode) @@mode = mode self.gateway_mode = mode end |
.test? ⇒ Boolean
A check to see if we’re in test mode
21 22 23 |
# File 'lib/active_merchant/billing/base.rb', line 21 def self.test? self.gateway_mode == :test end |