Skip to content

Commit

Permalink
Need to finalize payments that are auto_captured
Browse files Browse the repository at this point in the history
  • Loading branch information
BDQ committed Feb 26, 2010
1 parent 1e318b6 commit 18597fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/spree/paypal_express.rb
Expand Up @@ -131,6 +131,10 @@ def paypal_finish
end
complete_checkout

if Spree::Config[:auto_capture]
payment.finalize!
end

else
order_params = {}
gateway_error(ppx_auth_response)
Expand Down

0 comments on commit 18597fa

Please sign in to comment.