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:
- When the command is called with payment instructions, each payment instruction is validated and added.
- When the command is called without payment instructions, no validation takes place and no payment instruction is added. This logic occurs when the StoreAndValidatePaymentCmd and PIAddCmd has already called.
The possible payment actions associated with this command are: Validation, Approve, and Deposit.
For Example:
- A customer shops at a store, submits an order and specifies that a particular credit card should be used as the payment method.
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.
(C) Copyright IBM Corporation 1996, 2006. All Rights Reserved.