Preliminary context: how does an order placement work for a guest customer?
So, the further processing is the same as for the registered customers.
Further reading: How does a payment information saving work when a registered customer places an order?