angelim / spree_cielo

BSD 3-Clause "New" or "Revised" License
7 stars 10 forks source link

undefined method `verify!' #3

Closed leosmeira closed 11 years ago

leosmeira commented 11 years ago

O retorno não funcionou e ao verificar o pagamento do pedido, informa o seguinte erro:

Estou usando o Branche: spree-1-1-3 Spree 1.1.3 Ruby 1.9.3

NoMethodError (undefined method verify!' for #<Spree::Payment:0xcce776c>): activemodel (3.2.13) lib/active_model/attribute_methods.rb:407:inmethod_missing' activerecord (3.2.13) lib/active_record/attribute_methods.rb:149:in method_missing' spree_core (1.1.3) app/controllers/spree/admin/payments_controller.rb:58:infire' actionpack (3.2.13) lib/action_controller/metal/implicit_render.rb:4:in send_action' actionpack (3.2.13) lib/abstract_controller/base.rb:167:inprocess_action' actionpack (3.2.13) lib/action_controller/metal/rendering.rb:10:in process_action' actionpack (3.2.13) lib/abstract_controller/callbacks.rb:18:inblock in process_action' activesupport (3.2.13) lib/active_support/callbacks.rb:524:in _run__928175286__process_action__937667493__callbacks' activesupport (3.2.13) lib/active_support/callbacks.rb:405:inrun_callback' activesupport (3.2.13) lib/active_support/callbacks.rb:385:in _run_process_action_callbacks' activesupport (3.2.13) lib/active_support/callbacks.rb:81:inrun_callbacks' actionpack (3.2.13) lib/abstract_controller/callbacks.rb:17:in process_action' actionpack (3.2.13) lib/action_controller/metal/rescue.rb:29:inprocess_action' actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:30:in block in process_action' activesupport (3.2.13) lib/active_support/notifications.rb:123:inblock in instrument' activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:in instrument' activesupport (3.2.13) lib/active_support/notifications.rb:123:ininstrument' actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:29:in process_action' actionpack (3.2.13) lib/action_controller/metal/params_wrapper.rb:207:inprocess_action' activerecord (3.2.13) lib/active_record/railties/controller_runtime.rb:18:in process_action' actionpack (3.2.13) lib/abstract_controller/base.rb:121:inprocess' actionpack (3.2.13) lib/abstract_controller/rendering.rb:45:in process' actionpack (3.2.13) lib/action_controller/metal.rb:203:indispatch' actionpack (3.2.13) lib/action_controller/metal/rack_delegation.rb:14:in dispatch' actionpack (3.2.13) lib/action_controller/metal.rb:246:inblock in action' actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in call' actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:indispatch' actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:36:in call' journey (1.0.4) lib/journey/router.rb:68:inblock in call' journey (1.0.4) lib/journey/router.rb:56:in each' journey (1.0.4) lib/journey/router.rb:56:incall' actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in call' spree_core (1.1.3) lib/spree/core/middleware/redirect_legacy_product_url.rb:13:incall' spree_core (1.1.3) lib/spree/core/middleware/seo_assist.rb:27:in call' railties (3.2.13) lib/rails/engine.rb:479:incall' railties (3.2.13) lib/rails/railtie/configurable.rb:30:in method_missing' journey (1.0.4) lib/journey/router.rb:68:inblock in call' journey (1.0.4) lib/journey/router.rb:56:in each' journey (1.0.4) lib/journey/router.rb:56:incall' actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in call' warden (1.1.1) lib/warden/manager.rb:35:inblock in call' warden (1.1.1) lib/warden/manager.rb:34:in catch' warden (1.1.1) lib/warden/manager.rb:34:incall' actionpack (3.2.13) lib/action_dispatch/middleware/best_standards_support.rb:17:in call' rack (1.4.5) lib/rack/etag.rb:23:incall' rack (1.4.5) lib/rack/conditionalget.rb:35:in call' actionpack (3.2.13) lib/action_dispatch/middleware/head.rb:14:incall' actionpack (3.2.13) lib/action_dispatch/middleware/params_parser.rb:21:in call' actionpack (3.2.13) lib/action_dispatch/middleware/flash.rb:242:incall' rack (1.4.5) lib/rack/session/abstract/id.rb:210:in context' rack (1.4.5) lib/rack/session/abstract/id.rb:205:incall' actionpack (3.2.13) lib/action_dispatch/middleware/cookies.rb:341:in call' activerecord (3.2.13) lib/active_record/query_cache.rb:64:incall' activerecord (3.2.13) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in call' actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:28:inblock in call' activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `_run637477011call969932741__callbacks' activesupport (3.2.13) lib/active_support/callbacks.rb:405:in__run_callback' activesupport (3.2.13) lib/active_support/callbacks.rb:385:in_run_call_callbacks' activesupport (3.2.13) lib/active_support/callbacks.rb:81:inrun_callbacks' actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:27:incall' actionpack (3.2.13) lib/action_dispatch/middleware/reloader.rb:65:incall' actionpack (3.2.13) lib/action_dispatch/middleware/remote_ip.rb:31:incall' actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:16:incall' actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:incall' railties (3.2.13) lib/rails/rack/logger.rb:32:incall_app' railties (3.2.13) lib/rails/rack/logger.rb:18:incall' actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:incall' rack (1.4.5) lib/rack/methodoverride.rb:21:incall' rack (1.4.5) lib/rack/runtime.rb:17:incall' activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:incall' rack (1.4.5) lib/rack/lock.rb:15:incall' actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:incall' railties (3.2.13) lib/rails/engine.rb:479:incall' railties (3.2.13) lib/rails/application.rb:223:incall' railties (3.2.13) lib/rails/railtie/configurable.rb:30:inmethod_missing' /home/rails_3/.passenger/standalone/3.0.19-x86-ruby1.9.3-linux-gcc4.4.3-1002/support/lib/phusion_passenger/rack/request_handler.rb:96:inprocess_request' /home/rails_3/.passenger/standalone/3.0.19-x86-ruby1.9.3-linux-gcc4.4.3-1002/support/lib/phusion_passenger/abstract_request_handler.rb:516:inaccept_and_process_next_request' /home/rails_3/.passenger/standalone/3.0.19-x86-ruby1.9.3-linux-gcc4.4.3-1002/support/lib/phusion_passenger/abstract_request_handler.rb:274:inmain_loop' /home/rails_3/.passenger/standalone/3.0.19-x86-ruby1.9.3-linux-gcc4.4.3-1002/support/lib/phusion_passenger/rack/application_spawner.rb:206:instart_request_handler' /home/rails_3/.passenger/standalone/3.0.19-x86-ruby1.9.3-linux-gcc4.4.3-1002/support/lib/phusion_passenger/rack/application_spawner.rb:171:inblock in handle_spawn_application' /home/rails_3/.passenger/standalone/3.0.19-x86-ruby1.9.3-linux-gcc4.4.3-1002/support/lib/phusion_passenger/utils.rb:470:insafe_fork' /home/rails_3/.passenger/standalone/3.0.19-x86-ruby1.9.3-linux-gcc4.4.3-1002/support/lib/phusion_passenger/rack/application_spawner.rb:166:inhandle_spawn_application' /home/rails_3/.passenger/standalone/3.0.19-x86-ruby1.9.3-linux-gcc4.4.3-1002/support/lib/phusion_passenger/abstract_server.rb:357:inserver_main_loop' /home/rails_3/.passenger/standalone/3.0.19-x86-ruby1.9.3-linux-gcc4.4.3-1002/support/lib/phusion_passenger/abstract_server.rb:206:instart_synchronously' /home/rails_3/.passenger/standalone/3.0.19-x86-ruby1.9.3-linux-gcc4.4.3-1002/support/lib/phusion_passenger/abstract_server.rb:180:instart' /home/rails_3/.passenger/standalone/3.0.19-x86-ruby1.9.3-linux-gcc4.4.3-1002/support/lib/phusion_passenger/rack/application_spawner.rb:129:instart' /home/rails_3/.passenger/standalone/3.0.19-x86-ruby1.9.3-linux-gcc4.4.3-1002/support/lib/phusion_passenger/spawn_manager.rb:253:inblock (2 levels) in spawn_rack_application' /home/rails_3/.passenger/standalone/3.0.19-x86-ruby1.9.3-linux-gcc4.4.3-1002/support/lib/phusion_passenger/abstract_server_collection.rb:132:inlookup_or_add' /home/rails_3/.passenger/standalone/3.0.19-x86-ruby1.9.3-linux-gcc4.4.3-1002/support/lib/phusion_passenger/spawn_manager.rb:246:inblock in spawn_rack_application' /home/rails_3/.passenger/standalone/3.0.19-x86-ruby1.9.3-linux-gcc4.4.3-1002/support/lib/phusion_passenger/abstract_server_collection.rb:82:inblock in synchronize'

:10:in`synchronize' /home/rails_3/.passenger/standalone/3.0.19-x86-ruby1.9.3-linux-gcc4.4.3-1002/support/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' /home/rails_3/.passenger/standalone/3.0.19-x86-ruby1.9.3-linux-gcc4.4.3-1002/support/lib/phusion_passenger/spawn_manager.rb:244:in`spawn_rack_application' /home/rails_3/.passenger/standalone/3.0.19-x86-ruby1.9.3-linux-gcc4.4.3-1002/support/lib/phusion_passenger/spawn_manager.rb:137:in `spawn_application' /home/rails_3/.passenger/standalone/3.0.19-x86-ruby1.9.3-linux-gcc4.4.3-1002/support/lib/phusion_passenger/spawn_manager.rb:275:in`handle_spawn_application' /home/rails_3/.passenger/standalone/3.0.19-x86-ruby1.9.3-linux-gcc4.4.3-1002/support/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop' /home/rails_3/.passenger/standalone/3.0.19-x86-ruby1.9.3-linux-gcc4.4.3-1002/support/lib/phusion_passenger/abstract_server.rb:206:in`start_synchronously' /home/rails_3/.passenger/standalone/3.0.19-x86-ruby1.9.3-linux-gcc4.4.3-1002/support/helper-scripts/passenger-spawn-server:99:in `
' Rendered /home/rails_3/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.1ms) Rendered /home/rails_3/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.6ms) Rendered /home/rails_3/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (14.3ms)
leosmeira commented 11 years ago

Este problema ocorreu pois a aplicação estava com a configuração:

auto_capture = true

No meu fork eu acertei este erro!