Skip to content
This repository has been archived by the owner on Nov 29, 2019. It is now read-only.

Paypal refuses to work without shipment configuration #123

Open
skatkov opened this issue Jan 30, 2013 · 0 comments
Open

Paypal refuses to work without shipment configuration #123

skatkov opened this issue Jan 30, 2013 · 0 comments

Comments

@skatkov
Copy link

skatkov commented Jan 30, 2013

I'm using paypal_express gem with spree_digital - all products are downloadable. So, i disabled address and delivery pages.

So, then i checkout i receive error after payment page (selecting paypal as gateway ofcourse ). here it is:

2013-01-30 13:48:17+00:00 app web.1 - - NoMethodError (undefined method `name' for nil:NilClass):
2013-01-30 13:48:17+00:00 app web.1 - - vendor/bundle/ruby/1.9.1/bundler/gems/spree_paypal_express-e493ae1724a9/app/controllers/spree/checkout_controller_decorator.rb:350:in `shipping_options'
2013-01-30 13:48:17+00:00 app web.1 - - vendor/bundle/ruby/1.9.1/bundler/gems/spree_paypal_express-e493ae1724a9/app/controllers/spree/checkout_controller_decorator.rb:293:in `order_opts'
2013-01-30 13:48:17+00:00 app web.1 - - vendor/bundle/ruby/1.9.1/bundler/gems/spree_paypal_express-e493ae1724a9/app/controllers/spree/checkout_controller_decorator.rb:384:in `all_opts'
2013-01-30 13:48:17+00:00 app web.1 - - vendor/bundle/ruby/1.9.1/bundler/gems/spree_paypal_express-e493ae1724a9/app/controllers/spree/checkout_controller_decorator.rb:31:in `paypal_payment'
...

workaround would be (basically, just add default shipment):

  • Add shipping category
  • Assign shipment method to category
  • Add default shipment to all products in shop

My gemfile:

gem 'rails', '3.2.11'
gem 'pry', :group => :development

group :development do 
  gem 'sqlite3'
  gem 'autotest'
  gem 'autotest-doom'
end

group :test, :production do
  gem 'pg'
  gem 'thin'
end

group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'
  gem 'uglifier', '>= 1.0.3'
end

group :test, :development do
  gem "rspec-rails", "~> 2.0"
  gem 'factory_girl_rails', '~> 1.7.0'
  gem 'ffaker'
  gem 'selenium-webdriver', '2.27.1'
  gem 'capybara'
  gem 'launchy'
end

gem 'jquery-rails'
gem 'spree', '1.3.1'
gem 'spree_auth_devise', :github => 'spree/spree_auth_devise', :branch => '1-3-stable'

gem 'spree_digital', :github => 'halo/spree_digital', :branch => 'master'
gem 'spree_paypal_express', :git => 'https://github.com/spree/spree_paypal_express.git', :branch => '1-3-stable'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant