Git Product home page Git Product logo

Comments (5)

radar avatar radar commented on August 30, 2024

Is this class supposed to be defined in ActiveMerchant? Is it one of ours?

from spree_paypal_express.

radar avatar radar commented on August 30, 2024

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.

cnight avatar cnight commented on August 30, 2024

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.

radar avatar radar commented on August 30, 2024

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.

cnight avatar cnight commented on August 30, 2024

Will do.

Just about time for valentines beers here too ;)

from spree_paypal_express.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.