Shopify/active_merchant — pull request #359 by Soleone (2012-05-15 14:49:39+00:00)
Title: Orbital: Don't send AVS address details for any country besides

## Problem

A few selected transactions from e.g. Netherlands failed with the error "Request does not adhere to the DTD. Please correct and send again."

After brining it up with Chase support they said that:

> Most likely it is the address. AVS verification occurs only for transactions in the U.S., Canada, and Great Britain. Outside of these no address verification is present.
> Additionally special characters in the address field outside those specified in the schema along with length limits could cause this error.
> While a customer can process transactions using a card from many countries the merchant is limited in what information they submit to us.
> We recommend not submitting address information for transactions outside of those countries, our system does not use the information and it could cause issues like this.

## Solution

Only send name and country code for all addresses outside of US, CA, GB and UK

Based off the XML Schema file called Request_PTI54.psd from the zip file http://download.chasepaymentech.com/docs/orbital/online_xml_api_schema_xsd_only.zip, line 829:
https://img.skitch.com/20120515-j9fk1mqak6ifxr8y676sdeyb8j.jpg (screenshot)

Please review @jduff @odorcicd