opencart/opencart — pull request #332 by mathzol (2013-01-09 16:08:13+00:00)
Title: two browser credit trick issue trap text mail

Here is the original issiue:
"I think there is a bug when using store credits. When I add a credit to a customer account, lets say 50 euro and I will open the opencart webshop in multiple browsers at the same time and create an order in every browser until all browsers have placed the order and are now on a payment processing page of a Payment service provider, then all orders have received the credit of 50 euro.

When all orders are now paid, the customer will have a negative credit in his account but a store admin doesn't get notified about this so when the customer will never return to place another order then we have lost the total amount that was credited for the other orders.

Please let me know if you have enought information or I will add some screenshots etc."

I tried to solve this by checking the user transaction balance after the comfirm and if this value is in minus an email will be warn about the order may be tricky!