Browse Source

save payment after capture, to generate a pay event

1-2-stable-sysmocom
paulcc 13 years ago
parent
commit
48bdd6c2d1
  1. 1
      lib/spree/paypal_express.rb

1
lib/spree/paypal_express.rb

@ -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

Loading…
Cancel
Save