mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Default payment method server/test_mode to live
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user