ATG Commerce Programming Guide

recalcPaymentGroupAmounts Pipeline Chain

The recalcPaymentGroupAmounts pipeline chain regenerates the amount that must be assigned to each PaymentGroup in the Order. The recalcPaymentGroupAmounts pipeline chain is executed by the recalculatePaymentGroupAmounts() method in the OrderManager. This chain is primarily used by the Customer Service Module. The recalculatePaymentGroupAmounts() method adds the given Order and OrderManager to its parameter list, which is supplied to the executing chain. The pipeline chain’s transaction mode is TX_REQUIRED.

The recalcPaymentGroupAmounts pipeline chain contains the following processor:

PipelineLink Name: setPaymentGroupAmount2This processor sets the amount property of each PaymentGroup in the Order based on the Relationships in each PaymentGroup. This amount is the amount that will ultimately be debited by the PaymentManager.Transactional mode: TX_MANDATORYNucleus component:/atg/commerce/order/processor/SetPaymentGroupAmountPipelineProcessor object:atg.commerce.order.processor.ProcSetPaymentGroupAmountTransitions: None, this is the only link in the chain and will cause the PipelineManager to return to the caller.