From 69da0ef978151ca882d8812e8a4a805952d3d598 Mon Sep 17 00:00:00 2001 From: Brian Quinn Date: Mon, 25 Jan 2010 15:21:41 +0000 Subject: [PATCH] Use BillingIntegration#provider method to create instance of provider_class --- lib/spree/paypal_express.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/spree/paypal_express.rb b/lib/spree/paypal_express.rb index 21a8cb9..bacdf62 100644 --- a/lib/spree/paypal_express.rb +++ b/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