AVS verification returns 'Extra characters(s) found in attributes!'

I'm trying to enable AVS&CVD verification, i have data set in xml string, but none of them is working.

for cvd, payment get approved, but no CVD result in the response message.

for avs, as long as i have it enabled, i get error message saying 'Extra characters(s) found in attributes!'

here is my xml string,

<request><store_id>store3</store_id><api_token>yesguy</api_token><status_check>false</status_check><purchase><amount>10.10</amount><order_id>d7de09b4170715:06:51</order_id><cust_id>test test</cust_id><pan>4242424242424242</pan><expdate>0621</expdate><crypt_type>7</crypt_type><dynamic_descriptor></dynamic_descriptor><cust_info><billing><first_name>test</first_name><last_name>test</last_name><company_name>DE</company_name><address>123 street</address><city>Ottawa</city><province>ON</province><country>CA</country><postal_code>11111</postal_code><phone_number>1112223333</phone_number><fax></fax><tax1></tax1><tax2></tax2><tax3></tax3><shipping_cost></shipping_cost></billing><shipping><first_name>test</first_name><last_name>test</last_name><company_name>DE</company_name><address>123 street</address><city>Ottawa</city><province>ON</province><country>CA</country><postal_code>11111</postal_code><phone_number>1112223333</phone_number><fax></fax><tax1></tax1><tax2></tax2><tax3></tax3><shipping_cost></shipping_cost></shipping><item><name>PackagesSingleTicket</name><quantity>1</quantity><product_code>3318-3209</product_code><extended_amount>2.2600</extended_amount></item><cvd_info><cvd_indicator>1</cvd_indicator><cvd_value>123</cvd_value></cvd_info><avs_info><avs_street_number >201</avs_street_number ><avs_street_name >Michigan Ave</avs_street_name ><avs_zipcode>M1M1M1</avs_zipcode></avs_info><email></email><instructions></instructions></cust_info></purchase></request>

Please let me know if i did something wrong, thank you.
  • There's a couple of issues. Your AVS and CVD elements should be part of the purchase and not in the cust_info. The expiry date format is YYMM. I also found that I needed to remove extra spaces from a few of the tags themselves, but this could have been due to copy pasting. Once that was done I was able to post the xml and receive a valid response.

    <request>
    <store_id>store3</store_id>
    <api_token>yesguy</api_token>
    <status_check>false</status_check>
    <purchase>
    <amount>10.10</amount>
    <order_id>mon_test_01</order_id>
    <cust_id>ll</cust_id>
    <pan>4242424242424242</pan>
    <expdate>2105</expdate>
    <crypt_type>7</crypt_type>
    <dynamic_descriptor></dynamic_descriptor>
    <cust_info>
    <billing>
    <first_name>test</first_name>
    <last_name>test</last_name>
    <company_name>DE</company_name>
    <address>123 street</address>
    <city>Ottawa</city>
    <province>ON</province>
    <country>CA</country>
    <postal_code>11111</postal_code>
    <phone_number>1112223333</phone_number>
    <fax></fax>
    <tax1></tax1>
    <tax2></tax2>
    <tax3></tax3>
    <shipping_cost></shipping_cost>
    </billing>
    <shipping>
    <first_name>test</first_name>
    <last_name>test</last_name>
    <company_name>DE</company_name>
    <address>123 street</address>
    <city>Ottawa</city>
    <province>ON</province>
    <country>CA</country>
    <postal_code>11111</postal_code>
    <phone_number>1112223333</phone_number>
    <fax></fax>
    <tax1></tax1>
    <tax2></tax2>
    <tax3></tax3>
    <shipping_cost></shipping_cost>
    </shipping>
    <item>
    <name>PackagesSingleTicket</name>
    <quantity>1</quantity>
    <product_code>3318-3209</product_code>
    <extended_amount>2.2600</extended_amount>
    </item>
    <email></email>
    <instructions></instructions>
    </cust_info>
    <cvd_info>
    <cvd_indicator>1</cvd_indicator>
    <cvd_value>123</cvd_value>
    </cvd_info>
    <avs_info>
    <avs_street_number>201</avs_street_number>
    <avs_street_name>Michigan Ave</avs_street_name>
    <avs_zipcode>M1M1M1</avs_zipcode>
    </avs_info>
    </purchase>
    </request>
  • In reply to LL_Moneris:

    Thank you for your response. I have my xml string updated, but still receiving the same message, any ideas?

    here is the string,

    <request>
    <store_id>store3</store_id>
    <api_token>yesguy</api_token>
    <status_check>false</status_check>
    <purchase>
    <amount>1.00</amount>
    <order_id>4d94f1c3171014:43:22</order_id>
    <cust_id>test test</cust_id>
    <pan>4030000010001234</pan>
    <expdate>2106</expdate>
    <crypt_type>7</crypt_type>
    <dynamic_descriptor></dynamic_descriptor>
    <cust_info>
    <billing>
    <first_name>test</first_name>
    <last_name>test</last_name>
    <company_name>DE</company_name>
    <address>123 street</address>
    <city>Ottawa</city>
    <province>ON</province>
    <country>CA</country>
    <postal_code>11111</postal_code>
    <phone_number>1112223333</phone_number>
    <fax></fax><tax1></tax1><tax2></tax2><tax3></tax3><shipping_cost></shipping_cost>
    </billing>
    <shipping>
    <first_name>test</first_name>
    <last_name>test</last_name>
    <company_name>DE</company_name>
    <address>123 street</address>
    <city>Ottawa</city>
    <province>ON</province>
    <country>CA</country>
    <postal_code>11111</postal_code>
    <phone_number>1112223333</phone_number>
    <fax></fax><tax1></tax1><tax2></tax2><tax3></tax3><shipping_cost></shipping_cost>
    </shipping>
    <item><name>PackagesTableofTen</name><quantity>1</quantity><product_code>3318-3210</product_code><extended_amount>1500.0000</extended_amount></item>
    <email></email><instructions></instructions>
    </cust_info>
    <cvd_info><cvd_indicator>1</cvd_indicator><cvd_value>123</cvd_value></cvd_info>
    <avs_info><avs_street_number >201</avs_street_number ><avs_street_name >Michigan Ave</avs_street_name ><avs_zipcode>M1M1M1</avs_zipcode></avs_info>
    </purchase>
    </request>
  • In reply to mgxj:

    Watch out for extra spaces in your tags. "<avs_street_name >" For your example, remove the extra space after "name".