Save order without loosing basket

Hello,

I am creating a plugin for a customer to couple a payment provider to ShopWare. In this plugin I need to create an order in order to have an orderid that I can communicate with the payment provider.

Is there a way to create an order without emptying the basket? At the moment I use the saveOrder function within the checkout class. This has the unfortunatly effect of emptying the basket which is not the flow I need. I need the possibility to return to the checkout after a cancelation of the user. The user should then return to the checkout (with the basket still there) and then choose another way to pay the products.

Is this possible? and if so what is the best way to create it.