我刚刚继承了一个有问题的狂欢项目。结账时,用户提供信用卡信息后,系统出现 rails 异常。我正在寻找有关可能需要登录参数的指导。我正在快速了解 spree 的工作原理,因此任何指导都会有所帮助。谢谢!
Started PUT "/checkout/update/payment" for 107.3.138.229 at 2012-09-28 08:52:11 -0700
Processing by Spree::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"XXXXXXX=", "order"=>{"payments_attributes"=>[{"payment_method_id"=>"2"}], "coupon_code"=>""}, "payment_source"=>{"2"=>{"number"=>"[FILTERED]", "month"=>"X", "year"=>"XXXX", "verification_value"=>"XXX", "first_name"=>"XXX", "last_name"=>"XXX"}}, "commit"=>"Save and Continue", "state"=>"payment"}
Completed 500 Internal Server Error in 464ms
ArgumentError (Missing required parameter: login):
active_utils (1.0.4) lib/active_utils/common/requires_parameters.rb:11:in `block in requires!'
active_utils (1.0.4) lib/active_utils/common/requires_parameters.rb:4:in `each'
active_utils (1.0.4) lib/active_utils/common/requires_parameters.rb:4:in `requires!'
activemerchant (1.20.4) lib/active_merchant/billing/gateways/authorize_net.rb:74:in `initialize'
spree_core (1.1.3) app/models/spree/gateway.rb:25:in `new'
spree_core (1.1.3) app/models/spree/gateway.rb:25:in `provider'
spree_core (1.1.3) lib/spree/core/delegate_belongs_to.rb:82:in `delegator_for'
spree_core (1.1.3) lib/spree/core/delegate_belongs_to.rb:44:in `block (2 levels) in delegate_belongs_to'
spree_core (1.1.3) app/models/spree/payment/processing.rb:128:in `block in gateway_action'
spree_core (1.1.3) app/models/spree/payment/processing.rb:172:in `protect_from_connection_error'
spree_core (1.1.3) app/models/spree/payment/processing.rb:125:in `gateway_action'
spree_core (1.1.3) app/models/spree/payment/processing.rb:22:in `authorize!'
spree_core (1.1.3) app/models/spree/payment/processing.rb:11:in `process!'
activerecord (3.2.8) lib/active_record/associations/collection_proxy.rb:89:in `each'
activerecord (3.2.8) lib/active_record/associations/collection_proxy.rb:89:in `method_missing'
spree_core (1.1.3) app/models/spree/order.rb:380:in `process_payments!'
spree_core (1.1.3) app/models/spree/order.rb:83:in `block (2 levels) in <class:Order>'