spree_paypal_express - Spree::Admin::PaymentsControllerDecorator (NameError)

85 Views Asked by At

I'm searching one solution for my question on web, but probably no one had the same problem.

Before deploying my spree project to the cloud, i'm trying to run it in my local host with RAILS_ENV=production, but I always receive the same error:

expected file /usr/local/bundle/bundler/gems/better_spree_paypal_express-181cce8bcd14/app/controllers/spree/admin/payments_controller_decorator.rb to define constant Spree::Admin::PaymentsControllerDecorator, but didn't (NameError)

I am having this problem only on production environment and I realize this started to happen when I added the spree_paypal_expresss gem.

Using Rails 6 and Spree 4.0 with sqlite just to test.

Do you have any idea why this is happening?

Thanks.

2

There are 2 best solutions below

0
On

Based on this thred on Spree's Slack channel, you should use https://github.com/spree-contrib/spree_braintree_vzero for PayPal integration on Spree.

0
On

I solved the problem. Actually I don't know what the real cause about it, but the downgrading the spree version to 3.7 the problem doesn't appear