Git Product home page Git Product logo

Comments (3)

radar avatar radar commented on August 30, 2024

It would seem like your Payment object doesn't have payment_method assigned to it. Why is that?

On Tuesday, 24 July 2012 at 8:15 PM, Aaron Cruz wrote:

When I click void on a pending Bogus (don't know if this matters) payment - I get an exception

A NoMethodError occurred in payments#fire:

undefined method `environment' for nil:NilClass
/my/secret/server/path/shared/bundle/ruby/1.9.1/bundler/gems/spree-a8e2ea0f9455/core/app/models/spree/payment/processing.rb:185:in `check_environment'

I can provide more of a stacktrace on request.

% cat Gemfile.lock | grep spree (master)
remote: git://github.com/pferdefleisch/spree_variant_options.git (http://github.com/pferdefleisch/spree_variant_options.git)
spree_variant_options (0.5.0)
spree_core (~> 1.1.1)
remote: git://github.com/spree/spree (http://github.com/spree/spree)
spree (1.1.2)
spree_api (= 1.1.2)
spree_auth (= 1.1.2)
spree_cmd (= 1.1.2)
spree_core (= 1.1.2)
spree_dash (= 1.1.2)
spree_promo (= 1.1.2)
spree_sample (= 1.1.2)
spree_api (1.1.2)
spree_auth (= 1.1.2)
spree_core (= 1.1.2)
spree_auth (1.1.2)
spree_core (= 1.1.2)
spree_cmd (1.1.2)
spree_core (1.1.2)
spree_dash (1.1.2)
spree_auth (= 1.1.2)
spree_core (= 1.1.2)
spree_promo (1.1.2)
spree_auth (= 1.1.2)
spree_core (= 1.1.2)
spree_sample (1.1.2)
spree_core (= 1.1.2)
remote: git://github.com/spree/spree_active_shipping (http://github.com/spree/spree_active_shipping)
spree_active_shipping (1.1.0)
spree_core (~> 1.0)
remote: git://github.com/spree/spree_gateway (http://github.com/spree/spree_gateway)
spree_gateway (1.0.0)
spree_core (~> 1.0)
remote: git://github.com/spree/spree_paypal_express.git (http://github.com/spree/spree_paypal_express.git)
spree_paypal_express (1.1.0)
spree_auth (>= 1.0.0)
spree_core (>= 1.0.0)
spree!
spree_active_shipping!
spree_gateway!
spree_paypal_express!
spree_variant_options!

Clumsily referred to in #54


Reply to this email directly or view it on GitHub:
#75

from spree_paypal_express.

mraaroncruz avatar mraaroncruz commented on August 30, 2024

I don't know. Could it do with it being Bogus. I didn't want to mess with real payments on my client's production site. But I will if I have to. Let me know.

from spree_paypal_express.

mraaroncruz avatar mraaroncruz commented on August 30, 2024

The Spree::PaymentMethod that was used to create the Spree::Payment no longer existed. So when I voided it, it was looking for a payment_method_id that didn't exist - thus the exception.
This is a spree issue, not a spree_paypal_express issue.
This seems like a bug to me. Maybe you have more insight @radar.

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.