Check order-payment status to verify the current payment state. This supports the asynchronous nature of payments and the fact that an order may have changed since payment was last authorized.
This process is normally used during release to fulfillment. It is also used during request payment authorization (DoPayment) for a backorder or an order that failed remote fulfillment. It is used in the later cases because request payment authorization processing has already been performed. Only a check of the payment status needs to be performed to get the current status and update the order accordingly.
This process checks to see whether or not the previously approved payment for an order is still valid and whether or not the approved amount is the same as the order amount.
Some examples of why this process is needed are as follows:
Integration with back-end systems
Professional, Business Edition
Task | Description | Role |
---|---|---|
Check TA spending limit |
Check the trading-agreement (TA) spending limit to see whether or not it has been exceeded. An order may include order items that are purchased under different trading agreements, and different trading agreements may have different spending limits.
Records for the purchase amount and refund amount for purchases and refunds against a trading agreement with a RightToBuy-by-amount TC are kept in the same currency specified for the RightToBuy-by-amount TC. These records are kept in separate tables, TRDPURAMT and TRDREFAMT respectively. Note that the currency of this RightToBuy TC must not change once the trading agreement has been activated and purchases have been made against the trading agreement. Purchases can be made using a currency that is different from the currency specified for the RightToBuy-by-amount TC.
The purchase amount of an order item is the sum of the ORDERITEMS.TOTALPRODUCT plus ORDERITEMS.TAXAMOUNT plus ORDERITEMS.SHIPCHARGE plus ORDERITEMS.SHIPTAXAMOUNT minus ORDERITEMS.TOTALADJUSTMENT. (Similarly, the purchase amount for the whole order consists of the sum of ORDERS.TOTALPRODUCT plus ORDERS.TOTALTAX plus ORDERS.TOTALSHIPPING plus ORDERS.TOTALTAXSHIPPING minus ORDERS.TOTALADJUSTMENT. This is the same as the total amount passed by the caller.) |
System |
Check PO spending limit |
Check to see whether or not the spending limit of the purchase order would be exceeded. Records of the purchase amount of purchases registered against a limited purchase order are kept in the same currency specified for the limited purchase order. These records are kept in the LPOPURAMT table. (Note that the currency specified by the limited purchase order must not change once the purchase order is used for any purchases.) Purchases can be made using different currencies. Checking involves doing a currency conversion if necessary before checking. |
System |
Check payment accept policy |
Execute the business policy command to check if payment is authorized. |
System |
Check payment |
Execute the check if payment is authorized. |
System |
Send E-mail to customer |
Notify the customer regarding the customer status of the process. This is a general task used to communicate information that the customer should know. In returns processing, the customer is notified if a requested update to a return request is rejected, because the goods were received already or a credit was issued already. |
System |
Send E-mail to merchant |
Notify the customer regarding the customer status of the process. This is a general task used to communicate information that the customer should know. In returns processing, the customer is notified if a requested update to a return request is rejected, because the goods were received already or a credit was issued already. |
System |
Update TA spending limit |
Perform the following:
An order may include order items that are purchased under the same trading agreement or different trading agreements.
The purchase amount of an order item is the sum of the ORDERITEMS.TOTALPRODUCT plus ORDERITEMS.TAXAMOUNT plus ORDERITEMS.SHIPCHARGE plus ORDERITEMS.SHIPTAXAMOUNT minus ORDERITEMS.TOTALADJUSTMENT. Since this task command may be called more than once, skip the insert if the row or rows already exist |
System |
Update PO spending limit |
Perform the following:
|
System |
Check external account |
This task is used to check the payment against the customer account through an external accounting system. It is intended for third parties to extend and write implementation code for integration with an external accounting system. |
System |
Cancel order |
Update the order state to canceled (X). |
System |
(C) Copyright IBM Corporation 1996, 2004. All Rights Reserved.