Comments (5)
Is this class supposed to be defined in ActiveMerchant? Is it one of ours?
from spree_paypal_express.
Looks like it's from ActiveMerchant. Is that the exact error you're getting? Perhaps we're not requiring whatever defines this constant.
from spree_paypal_express.
Yes it is certainly some type of loading issue. Here is the error in spree_core-1.0.0/app/views/spree/admin/payments/_list.html.erb:
ActionView::Template::Error (undefined class/module ActiveMerchant::Billing::PaypalExpressResponse):
13: <%= link_to payment_method_name(payment), admin_order_payment_path(@order, payment) %>
14: <%= t(payment.state, :scope => :payment_states, :default => payment.state.capitalize) %>
15:
16: <% payment.actions.each do |action| %>
17: <%= button_to t(action), fire_admin_order_payment_path(@order, payment, :e => action), :method => :put %>
18: <% end %>
19:
I was able to fix this error by adding the following line to one of the controller decorators (doesnt seem like the right place to put it, but it works):
require 'active_merchant/billing/gateways/paypal/paypal_express_response'
from spree_paypal_express.
I would recommend that you create a new file in config/initializers
in the gem (as it is an engine, so this will work) called paypal_express.rb
and put this line in it:
require 'active_merchant/billing/gateways/paypal_express'
This will require the necessary components and should fix the error. Once you've validated that it's fixed it, please submit it as a pull request and I'll look at merging it. Keep in mind that it's getting late here, so I may do it tonight or it may wait until tomorrow.
It depends on the scotch intake.
from spree_paypal_express.
Will do.
Just about time for valentines beers here too ;)
from spree_paypal_express.
Related Issues (20)
- error w latest shared / _order_details / add_paypal_details.html.erb.deface HOT 3
- 1-3-stable, undefined method `payment' HOT 2
- Unable to configure Checkout from Cart
- Installation Issues - Spree 1.3.2 HOT 2
- PayPal Page - Logo
- Missing localized phrase: (not given)
- Can't bundle 2-0-stable when using spree/spree/2-0-stable HOT 1
- Development guidelines HOT 3
- Cannot choose another Payment method after having choosed Paypal then canceled
- Branch 2-0-stable - cannot access order#show HOT 17
- Rails 4 without protected_attributes gem will fail on attr_accessible HOT 4
- re: undefined method `shipping_method' HOT 20
- error when order is completed HOT 1
- Rebase/update 2-0-stable branch HOT 1
- bundle exec rails g spree_paypal_express:install HOT 1
- Is this extension compatible with Google Ecommerce Analytics? HOT 1
- Add options to paypal checkout HOT 2
- Capturing payment through spree admin fails (works on paypal) HOT 1
- Shipping Address overridden HOT 6
- I cant't run my spree project in production environment
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spree_paypal_express.