attach current user to order, to enable order tracking etc

This commit is contained in:
paulcc 2009-07-06 12:36:31 +01:00
parent bea73e2a0c
commit 12641a8110
1 changed files with 2 additions and 0 deletions

View File

@ -133,6 +133,8 @@ module Spree::PaypalExpress
:txn_type => CreditcardTxn::TxnType::AUTHORIZE)
payment.creditcard_txns << transaction
order.user = current_user
order.save!
order.complete # get return of status? throw of problems??? else weak go-ahead