save payment after capture, to generate a pay event
This commit is contained in:
parent
35dffb780b
commit
48bdd6c2d1
|
@ -212,6 +212,7 @@ module Spree::PaypalExpress
|
||||||
payment.txns << CreditcardTxn.new( :amount => authorization.amount,
|
payment.txns << CreditcardTxn.new( :amount => authorization.amount,
|
||||||
:response_code => response.authorization,
|
:response_code => response.authorization,
|
||||||
:txn_type => CreditcardTxn::TxnType::CAPTURE )
|
:txn_type => CreditcardTxn::TxnType::CAPTURE )
|
||||||
|
payment.save
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue