Hello,

I'm using dotpay (polish) module that allows to pay with credit card (and other "direct" payments).
When client is confirming order this module first redirects user to pay page, then user pays and finally user is redirected to shop page where order is created.
Sometimes users after doing payment are closing browser to fast (one of more reasons) and my store doesn't create order. So I've money but I've no order.
To avoid this I want to modify module by reverse the order that first is created order and after that user is redirected to payment page.

Can anybody point me an existing module that makes the same thing and works in this order: order->payment. I don't want do it from scratch, fastest way is to modify.