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.
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.