save payment after capture, to generate a pay event

This commit is contained in:
paulcc 2009-09-22 20:40:24 +01:00
parent 35dffb780b
commit 48bdd6c2d1
1 changed files with 1 additions and 0 deletions

View File

@ -212,6 +212,7 @@ module Spree::PaypalExpress
payment.txns << CreditcardTxn.new( :amount => authorization.amount,
:response_code => response.authorization,
:txn_type => CreditcardTxn::TxnType::CAPTURE )
payment.save
end