mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-28 21:07:16 +00:00
19 lines
422 B
Ruby
19 lines
422 B
Ruby
module Spree
|
|
class Gateway::Migs < Gateway
|
|
preference :login, :string
|
|
preference :password, :string
|
|
|
|
attr_accessible :preferred_login, :preferred_password
|
|
|
|
def provider_class
|
|
ActiveMerchant::Billing::MigsGateway
|
|
end
|
|
|
|
def options_with_test_preference
|
|
options_without_test_preference.merge(test: preferred_test_mode)
|
|
end
|
|
|
|
alias_method_chain :options, :test_preference
|
|
end
|
|
end
|