Figure 18-1. Transactions for a brick-and-mortar store
The last section, packaging, might be optional and might involve additional tasks such as
gift wrapping. The payment stage might also take one of several methods of operation because
the customer could pay using cash, credit card, gift certificates, and so on.
When we consider e-commerce purchasing, the pipeline becomes longer, but it isn??™t really
any more complicated.
Designing the Order Pipeline
In the TShirtShop e-commerce application, the pipeline will look like the one in Figure 18-2.
Figure 18-2. TheTShirtShop order pipeline
CHAPTER 18 ?– IMPLEMENTING THE ORDER PIPELINE: PART 1 570
The tasks carried out in these pipeline sections are as follows:
Customer notification: An e-mail notification is sent to the customer stating that order
processing has started and confirming the items to be sent and the address to which
goods will be sent.
Credit card authorization: The credit card used for purchasing is checked, and the total
order amount is set aside (although no payment is taken at this stage).
Stock check: An e-mail is sent to the supplier with a list of the items that have been ordered.
Processing continues when the supplier confirms that the goods are available.
Payment: The credit card transaction is completed using the funds set aside earlier.
Shipping: An e-mail is sent to the supplier confirming that payment for the items ordered
has been taken.
Pages:
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686