The completeOrder
chain is executed when called by the updateShippingGroup
chain.
The following sections describe each processor in the pipeline chain.
settleOrder
Checks to see if all shipping groups have shipped, or if one shipping group has shipped and the SettleOnFirstShipment
property of the OrderFulfiller
is true. If not, then chain execution stops. Otherwise, it iterates through the Order’s payment groups and calls the debit
method of the PaymentGroupManager
on all of them. If the debit fails for a payment group, the payment group’s state is set to SETTLE_FAILED, and the order’s state is set to PENDING_MERCHANT_ACTION. If the debit succeeds, the payment group’s state is set to SETTLED.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | Return value of 1 executes the |
finishOrder
Sets the order’s state to NO_PENDING_ACTION and adds the modification to the modification list.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | None. This is the last link in the chain and causes the |