I want to create an order when the customer/travel agent has confirmed the itinerary. What do others think about when an order should actually be created (prepayment or immediately before payment (for example in the same transaction)) ?
I have read in other posts that order creation is tied to seat reservation. If unpaid itineraries are persisted, and the payment period has elapsed, does the order get cancelled and the seat released from its reservation?
Order as per my understanding has two parts in this business process. One is -prepayment reservation (e.g most of the internation flight seats can be reserved for a paeriod of 72 hrs before payment) and then there is actual booking once payment is made. Unless I am missing something conceptually, i would believe that we would need to issue order based on our individual assumptions. If we choose to assume that we will not let users reserve seats without actual payment being made then there will be one complete order as soon as user prepares itenary and pays for it (all together)
However if you choose to reserve seats for x amount of time, and then make payment to ocnfirm it, you would need some sort of temp order at reservation point and confirm it once payment is made. You would also need to clean up the expired bookings for which payment has not been.
So it depends how much fun you want to have in this assignment..:-))))