Convert Doxxxxx commands to a payment plug-in
To convert the DoPayment, DoDeposit, or DoRefund command to a payment plug-in:
- Create a payment plug-in following instructions in Create a payment plug-in.
- Move the Doxxxxx command logic that you use to communicate with the payment back-end system to the appropriate payment plug-in method:
- Move the DoPayment code to the approve payment plug-in method
- Move the DoDeposit code to the deposit payment plug-in method
- Move the DoRefund code to the credit payment plug-in method
- Make the task/policy command properties available to the payment plug-in as attributes in the interface value objects or as name-value pairs inside the payment protocol data (ExtendedData).
- Ensure that the payment plug-in does not contain business policy logic. If special business policy code is required, it should be used before the Payment Rules logic is used.
- If special configuration data is needed (such as external account information), use the plug-in deployment descriptor to define this data.
(C) Copyright IBM Corporation 1996, 2006. All Rights Reserved.