diff --git a/app/models/spree/gateway_decorator.rb b/app/models/spree/gateway_decorator.rb index e40b260ae8..3c6bb2638d 100644 --- a/app/models/spree/gateway_decorator.rb +++ b/app/models/spree/gateway_decorator.rb @@ -7,4 +7,9 @@ Spree::Gateway.class_eval do # To avoid that, we redefine this association here. has_and_belongs_to_many :distributors, join_table: 'distributors_payment_methods', :class_name => 'Enterprise', foreign_key: 'payment_method_id', association_foreign_key: 'distributor_id' + + + # Default to live + preference :server, :string, :default => 'live' + preference :test_mode, :boolean, :default => false end