spree/spree_paypal_express — Issue #34: uninitialized constant PaypalAccount 
Author: cnight
Created: 2012-02-15 04:33:22+00:00
State: open

With spree 1.0.0, checking out with paypal express works but trying to access the order payments in the admin leads to an error: uninitialized constant PaypalAccount on line 16 of spree_core-1.0.0/app/views/spree/admin/payments/_list.html.erb

13:	<%= link_to payment_method_name(payment), admin_order_payment_path(@order, payment) %>
14:	<%= t(payment.state, :scope => :payment_states, :default => payment.state.capitalize) %>
15:
16: <% payment.actions.each do |action| %>
17: <%= button_to t(action), fire_admin_order_payment_path(@order, payment, :e => action), :method => :put %>
18: <% end %>
19:

Tracked this back to the paypal_finish method in the checkout_controller_decorator, the source_type field is being set to an incorrectly name-spaced class name missing the Spree:: module prefix.