2. If the supplier confirms that the stock is available, OrderProcessor detects the new order
status and calls PsStockOk.
3. PsStockOk advances the order status and tells OrderProcessor to continue.
4. OrderProcessor detects the new order status and calls PsTakePayment.
5. PsTakePayment uses the transaction details stored earlier by PsCheckFunds to complete
the transaction by charging the customer??™s credit card for the order and then advances
the order status, telling OrderProcessor to continue.
6. OrderProcessor detects the new order status and calls PsShipGoods.
7. PsShipGoods sends an e-mail to the supplier with a confirmation of the items ordered,
instructs the supplier to ship these goods to the customer, and advances the order status.
8. OrderProcessor terminates.
CHAPTER 18 ?– IMPLEMENTING THE ORDER PIPELINE: PART 1 573
The third stage is as follows:
1. When the supplier confirms that the goods have been shipped, presentation/
admin_order_details.php calls OrderProcessor to continue order processing.
2. OrderProcessor detects the new order status and calls PsShipOk.
3. PsShipOk enters the shipment date in the database, advances the order status, and tells
OrderProcessor to continue.
4. OrderProcessor detects the new order status and calls PsFinalNotification.
5. PsFinalNotification sends an e-mail to the customer confirming that the order has
been shipped and advances the order stage.
Pages:
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690