Class: Spree::BillingIntegration
- Inherits:
-
PaymentMethod
- Object
- PaymentMethod
- Spree::BillingIntegration
- Defined in:
- app/models/spree/billing_integration.rb
Instance Method Summary collapse
Instance Method Details
#options ⇒ Object
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
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 |