Added a private method to create orders into checkout controller