Class: Spree::BillingIntegration Private
- Inherits:
-
PaymentMethod
- Object
- ActiveRecord::Base
- Base
- PaymentMethod
- Spree::BillingIntegration
- Defined in:
- app/models/spree/billing_integration.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary
Constants inherited from PaymentMethod
Instance Method Summary collapse
- #options ⇒ Object private
- #provider ⇒ Object private
Methods inherited from PaymentMethod
active?, #auto_capture?, available, #cancel, #display_on, #display_on=, find_with_destroyed, #method_type, #payment_profiles_supported?, #payment_source_class, #provider_class, providers, #reusable_sources, #source_required?, #store_credit?, #supports?
Methods included from Preferences::StaticallyConfigurable
#preference_source=, #preferences, #preferences=
Methods inherited from Base
display_includes, #initialize_preference_defaults, page, preference
Methods included from Preferences::Preferable
#default_preferences, #defined_preferences, #get_preference, #has_preference!, #has_preference?, #preference_default, #preference_type, #set_preference
Instance Method Details
#options ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
15 16 17 18 19 |
# File 'app/models/spree/billing_integration.rb', line 15 def = {} preferences.each { |key, value| [key.to_sym] = value } end |
#provider ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8 9 10 11 12 13 |
# File 'app/models/spree/billing_integration.rb', line 8 def provider = ActiveMerchant::Billing::Base.integration_mode = [:server].to_sym [:test] = true if [:test_mode] @provider ||= provider_class.new() end |