Class: Spree::Gateway Deprecated
- Inherits:
-
PaymentMethod::CreditCard
- Object
- ActiveRecord::Base
- Base
- PaymentMethod
- PaymentMethod::CreditCard
- Spree::Gateway
- Defined in:
- app/models/spree/gateway.rb
Overview
Deprecated.
Use Spree::PaymentMethod::CreditCard or Spree::PaymentMethod instead
Defined Under Namespace
Classes: Bogus, BogusSimple
Instance Method Summary collapse
-
#initialize(*args) ⇒ Gateway
constructor
A new instance of Gateway.
Methods inherited from PaymentMethod::CreditCard
#partial_name, #payment_source_class, #reusable_sources, #reusable_sources_by_order, #supports?
Methods inherited from PaymentMethod
active?, #auto_capture?, available, const_missing, #deprecated_method_type_override, #display_on, #display_on=, find_with_destroyed, #gateway, #method_type, model_name, #options, #partial_name, #payment_profiles_supported?, #payment_source_class, providers, #reusable_sources, #source_required?, #store_credit?, #supports?, #try_void
Methods included from Preferences::StaticallyConfigurable
#preference_source=, #preferences, #preferences=
Methods inherited from Base
display_includes, page, preference, #preferences
Methods included from Core::Permalinks
#generate_permalink, #save_permalink
Constructor Details
#initialize(*args) ⇒ Gateway
Returns a new instance of Gateway.
6 7 8 9 10 11 12 |
# File 'app/models/spree/gateway.rb', line 6 def initialize(*args) Spree::Deprecation.warn \ "Using Spree::Gateway as parent class of payment methods is deprecated. " \ "Please use Spree::PaymentMethod::CreditCard for credit card based payment methods " \ "or Spree::PaymentMethod for non credit card payment methods instead." super end |