AVSRules XML file

The AVSRules.xml file is used in Payment Rules processing. It determines what the Payment Rules responses should be when AVS scores 0 to 4 are received for credit card payment methods. This file is located in the following directory:

The paymentConfiguration_name is defined in PaymentMethodConfigurations.XML file

The ScoreRule element maps the payment plug-in responses for AVS scores, as per the payment plug-in specification. The response values can be changed if the defaults (as shown) are not compatible with merchant policies for AVS.

Example:

<ScoreRules xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance>
  xsi:noNamespaceSchemaLocation="com/ibm/commerce/edp/parsers/ScoreAndResponseRules.xsd">
  <ScoreRule from="0" to="0" response="Pass" description="AVS Complete Match" ruleType="AVS" />
  <ScoreRule from="1" to="1" response="Pass" description="AVS Street Address Match" ruleType="AVS" />
  <ScoreRule from="2" to="2" response="AttentionRequired" description="AVS Postal code Match" ruleType="AVS" />
  <ScoreRule from="3" to="3" response="Reject" description="AVS No Match" ruleType="AVS" />
  <ScoreRule from="4" to="4" response="AttentionRequired" description="AVS Other Response" ruleType="AVS" />
</EDPGlobalConfigs>

response

Specifies what the Payment Rules response should be when that particular AVS score is received. This attribute is the only configurable part of this file. Type Pass, AttentionRequired, or Reject as appropriate.

The AVS response description is similar to the description used for Order processing, although this file is not used in Order processing:

0

Both street address and zip code match.

1

Street address matches, but zip code does not.

2

Zip code matches, but street address does not.

3

Neither street address nor zip code match.

4

AVS result not available.