Comments (3)
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 apending
Bogus
(don't know if this matters) payment - I get an exceptionA 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.
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.
The Spree::PaymentMethod
that was used to create the Spree::Payment
no longer existed. So when I void
ed 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)
- 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.