Browse Source

Use BillingIntegration#provider method to create instance of provider_class

1-2-stable-sysmocom
Brian Quinn 12 years ago
parent
commit
69da0ef978
  1. 5
      lib/spree/paypal_express.rb

5
lib/spree/paypal_express.rb

@ -287,10 +287,9 @@ module Spree::PaypalExpress
def paypal_gateway
integration = BillingIntegration.find(params[:integration_id]) if params.key? :integration_id
integration ||= BillingIntegration.current
gw_opts = integration.options
requires!(gw_opts, :login, :password, :signature)
gateway = integration.provider_class.new(gw_opts)
gateway = integration.provider
end
end

Loading…
Cancel
Save