PrimePaymentCmd command

This command is called by the order capture. When the order is captured, this command provides some guarantee that the customer has funds to pay for the order. Like the storeAndValidateCmd, the purpose of this command is for the merchant to find out whether a payment is bad before the customer is disengaged. A Payment Rules order and payment instructions can be created by this command. A Payment Rules order corresponds to the payment portion of a WebSphere Commerce order, and can have multiple releases associated with it. But normally the Payment Rules order is created by StoreAndValidateCmd and the payment instructions are added by AddPICmd.

During PrimePaymentCmd, if the current charge of the order is zero, then the user has the configuration to either validate payment or approve the minimum amount or do nothing.

The PrimePaymentCmd is not optional; it always occurs.

Two logics of the PrimePaymentCmd exist: one with payment instructions, and one without payment instructions. The following conditions apply to each:

The possible payment actions associated with this command are: Validation, Approve, and Deposit.

For Example:

A PrimePaymentCmd is called and the Payment rules are read to determine what payment actions should take place for the payment method. Payment actions are configurable. For example, for credit cards, the default behavior is to check to ensure that the customer has sufficient credit and the card has not expired. If the credit card is fine, the payment is approved. If a payment action with the payment back-end system fails, a tickler is created to notify a Customer Service Representative. Other scenarios might involve other actions, such as depositing the funds immediately.