Before configuring XML files, you should already know:
- The payment methods and refund methods your store will honor. Consider that:
- A payment method is typically associated with one payment configuration ID (for example, credit card brand X has a configuration ID called config001, credit card brand Y has a configuration ID called config001, check has a configuration ID called config003, and so on).
- More than one payment configuration ID can be associated with a store so that a store can use various payment methods.
- A given payment method can be associated with a store more than once (for example, credit card brand X - Gold with configuration ID config0004 and credit card brand X - Silver with configuration ID config0005).
- The payment configuration ID to which the payment and refund rules should apply.
- The payment back-end system and therefore the payment protocols you intend to use.
A set of the XML files you need to configure to establish payment rules is provided in subdirectories under the following path:
WAS_installdir/installedApps/cell_name/WC_instance_name.ear/xml/config/payments/edp
WAS_userdir/installedApps/cell_name/WC_instance_name.ear/xml/config/payments/edp
WCDE_installdir/xml/config/payments/edp
To configure the PaymentMethodConfiguration.xml file and RefundMethodConfiguration.xml file:
- Follow instructions in Configuring payment methods to configure the payment methods you will use. The XML file you will configure is the PaymentMethodConfiguration.xml (in edp/cfgs/payment/payment_config_ID).
- Follow instructions in Configuring refund methods to configure the refund methods you will use. The XML file you will configure is the RefundMethodConfiguration.xml (in edp/cfgs/refund/payment_config_ID).
Another XML file, PaymentRules.xml (in the edp/rules directory) is used with the overall configuration but you are not expected to modify the PaymentRules.xml file. This is a read-only file. The PaymentRules.xml file provides a list of the payment and refund rules that are considered valid by the system and available for your use. For that reason, only one PaymentRules.xml file is used by all payment configurations.
Currently, refund rules are not configurable; only refund methods are configurable.