PIAdd URL

This URL adds a new payment method to an order. This command calls the EditCmd task command to add the payment method.


URL

PIAdd


Controller command

PIAddCmd


Implementation class

PIAddCmdImpl


Commands called

AddUnboundPITaskCmd

EditCmd


URL structure


Example 1

The following example adds the AMEX credit card payment method to order 112233, for an amount of 105.50 USD, with protocol data values for the credit card account, brand, and expiration. The assumption is that the order already exists and is using USD as the currency.


Example 2

The following example adds the electronic check payment method to order 112233, for an amount of 300 USD, and supplies the check routing number required by that payment method to perform the transaction. The assumption is that the order already exists and is using USD as the currency.


Behavior

Check if the order is locked by the current CSR. If the order is not locked and called by a CSR, or if it is locked by another CSR, an exception is thrown If the payment instruction to be added is unbound (An unbound payment instruction for the order only has the information for the payment method and the payment policy):

Otherwise:


Exception conditions


Related concepts
Payment instructions
Payment methods


Related reference
PICopy URL
PIEdit URL
PIRemove URL