Skip to content

Commit

Permalink
need to save order after complete
Browse files Browse the repository at this point in the history
  • Loading branch information
David Henner committed Feb 26, 2011
1 parent 9779bc7 commit 1dd110f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/order.rb
Expand Up @@ -510,6 +510,7 @@ def create_invoice_transaction(credit_card, charge_amount, args, credited_amount
invoices.push(invoice_statement)
if invoice_statement.succeeded?
self.order_complete! #complete!
self.save
else
#role_back
invoice_statement.errors.add(:base, 'Payment denied!!!')
Expand Down

0 comments on commit 1dd110f

Please sign in to comment.