Hell Drukman
Are sure that You are getting duplicate orders for every order done with this configuration ?
Because of this behaviour shows with different configurations, then the problem is maybe not only connected to the configuration. It could be some kind of timing issue with the sql sequences storing these orders. This configuration generates maybe several updates of the order data that could give these problems.
I am currently using the old VM 1.1.3 and with CertiTrade card payment I get duplicate orders from time to time.
I suspect that this is a timing problem together with a heavily loaded sql server. I am not reporting a bug with the older VM 1.1 I am only trying to give You another view of this bug in VM 2.x.
This could be happening when the customer several times repeatedly presses the button on Certirades safe website that sends them back to my webshop.
My guess is that several requests of storing the updated data for the purchase are getting processed. There are probably checks that should prevent this, but i guess that they must be done before the first request is stored in the database.
I have actually had an order that got three copies (with consecutive ordernumbers), a total of four orders !
I could confirm this behaviour at that time. But later I couldn´t repeat the behaviour and because of this I stopped looking for the bug. I still happens, but I now simply erase the duplicate order and tell the customer that money has only been transferred once and that it otherwise is OK.
This could also be the case here. A check that the order actually doesn´t already exists under a different ordernumber performed when updating payment data could prevent this.
This is of curse only an educated guess, but maybe someone could check if my theory pans out.
my two cents
Jörgen @ Kreativ Fotografi