Merge pull request #7191 from mkllnk/fix-deprecation-gateway-mode

Replace ActiveMerchant's deprecated gateway_mode
This commit is contained in:
Matt-Yorkley
2021-04-01 13:29:10 +02:00
committed by GitHub

View File

@@ -28,7 +28,7 @@ module Spree
gateway_options = options
gateway_options.delete :login if gateway_options.key?(:login) && gateway_options[:login].nil?
if gateway_options[:server]
ActiveMerchant::Billing::Base.gateway_mode = gateway_options[:server].to_sym
ActiveMerchant::Billing::Base.mode = gateway_options[:server].to_sym
end
@provider ||= provider_class.new(gateway_options)
end