Class: Spree::BillingIntegration
- Inherits:
-
PaymentMethod
- Object
- ActiveRecord::Base
- Base
- PaymentMethod
- Spree::BillingIntegration
- Defined in:
- app/models/spree/billing_integration.rb
Instance Method Summary collapse
Methods inherited from PaymentMethod
#auto_capture?, find_sti_class, model_name, #partial_name, #payment_profiles_supported?, #payment_source_class, #reusable_sources, #source_required?, #store_credit?, #supports?, #try_void
Methods included from Preferences::StaticallyConfigurable
#preference_source=, #preferences, #preferences=
Methods inherited from Base
Methods included from Core::Permalinks
#generate_permalink, #save_permalink
Instance Method Details
#gateway ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'app/models/spree/billing_integration.rb', line 10 def gateway = # All environments except production considered to be test test_server = [:server] != 'production' test_mode = [:test_mode] [:test] = (test_server || test_mode) @gateway ||= gateway_class.new() end |
#options ⇒ Object
22 23 24 25 26 |
# File 'app/models/spree/billing_integration.rb', line 22 def = {} preferences.each { |key, value| [key.to_sym] = value } end |