I would like to be able to have an existing order that has already been checked out back into a user's shopping cart. From what I have read from the documentation, a shopping cart is just an order for a user.
This is relevant because when my user's checkout the order, it only does an authorize only transaction, which means the funds have not been transferred yet. I want to allow my user's a window of time to change their order.
So, I figured the best way to do this was to take the order that they want to edit, void it out, and then put it back into their shopping cart.
I can't seem to find an api call for this. I saw
hook_commerce_cart_order_is_cart_alter in the commerce_cart API, but I couldn't figure out when this was called or if this was a use case for this API call.