Prepared createOrder function on CheckoutController