<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Why did getValidationResponse() fail in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Why-did-getValidationResponse-fail/m-p/32849#M17393</link>
    <description>&lt;P&gt;what's the difference between getValidationResponse() and getValidationResponses()? When should I use which? &amp;nbsp;Where can I find some document on these functions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case, I only added one payment profile, so I thought I should use the singular version. I'll try the plural version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 31 Jan 2013 22:32:52 GMT</pubDate>
    <dc:creator>jobs2careers</dc:creator>
    <dc:date>2013-01-31T22:32:52Z</dc:date>
    <item>
      <title>Why did getValidationResponse() fail</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Why-did-getValidationResponse-fail/m-p/32842#M17386</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Using CIM, I created a new customer with payment profile (createCustomerProfile), but then when I called getValidationResponse() to check if the credit card has been approved, I got an error "Error connecting to AuthorizeNet". &amp;nbsp;Here's code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;$rsp = $req-&amp;gt;createcustomerProfile($customer, 'liveMode');&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if ($rsp-&amp;gt;isError()) exit($rsp-&amp;gt;getErrorMessage());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;$vr = $rsp-&amp;gt;getValidationResponse();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (!$vr-&amp;gt;approved) exit($vr-&amp;gt;error_message); // failed!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The new credit card was actually approved as shown in the response message:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;This is the the response message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&amp;lt;createCustomerProfileResponse xmlns:xsi="&lt;A target="_blank" href="http://www.w3.org/2001/XMLSchema-instance"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;" xmlns:xsd="&lt;A target="_blank" href="http://www.w3.org/2001/XMLSchema"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;&amp;lt;messages&amp;gt;&amp;lt;resultCode&amp;gt;Ok&amp;lt;/resultCode&amp;gt;&amp;lt;message&amp;gt;&amp;lt;code&amp;gt;I00001&amp;lt;/code&amp;gt;&amp;lt;text&amp;gt;Successful.&amp;lt;/text&amp;gt;&amp;lt;/message&amp;gt;&amp;lt;/messages&amp;gt;&amp;lt;customerProfileId&amp;gt;56445628&amp;lt;/customerProfileId&amp;gt;&amp;lt;customerPaymentProfileIdList&amp;gt;&amp;lt;numericString&amp;gt;53269289&amp;lt;/numericString&amp;gt;&amp;lt;/customerPaymentProfileIdList&amp;gt;&amp;lt;customerShippingAddressIdList /&amp;gt;&amp;lt;validationDirectResponseList&amp;gt;&amp;lt;string&amp;gt;1,1,1,This transaction has been approved.,000000,Y,4971091200,none,Test transaction for ValidateCustomerPaymentProfile.,0.00,CC,auth_only,75,Nancy,Egan,,2223 E Baseline Rd, #B,Gilbert,AZ,85234,,,,ellen.donegan@tawinc.com,,,,,,,,,0.00,0.00,0.00,FALSE,none,E3F1D3A77402420EA216123F5CA83DEE,U,,,,,,,,,,,,XXXX2033,American Express,,,,,,,,,,,,,,,,&amp;lt;/string&amp;gt;&amp;lt;/validationDirectResponseList&amp;gt;&amp;lt;/createCustomerProfileResponse&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So why did $vr-&amp;gt;approved return false?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2013 22:06:12 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Why-did-getValidationResponse-fail/m-p/32842#M17386</guid>
      <dc:creator>jobs2careers</dc:creator>
      <dc:date>2013-01-31T22:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why did getValidationResponse() fail</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Why-did-getValidationResponse-fail/m-p/32844#M17388</link>
      <description>&lt;P&gt;Look like you should be using getValidationResponses not &lt;SPAN&gt;getValidationResponse&lt;/SPAN&gt; There is a "s"&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2013 22:16:45 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Why-did-getValidationResponse-fail/m-p/32844#M17388</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-01-31T22:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Why did getValidationResponse() fail</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Why-did-getValidationResponse-fail/m-p/32849#M17393</link>
      <description>&lt;P&gt;what's the difference between getValidationResponse() and getValidationResponses()? When should I use which? &amp;nbsp;Where can I find some document on these functions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case, I only added one payment profile, so I thought I should use the singular version. I'll try the plural version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2013 22:32:52 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Why-did-getValidationResponse-fail/m-p/32849#M17393</guid>
      <dc:creator>jobs2careers</dc:creator>
      <dc:date>2013-01-31T22:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why did getValidationResponse() fail</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Why-did-getValidationResponse-fail/m-p/32850#M17394</link>
      <description>&lt;P&gt;There isn't much documentation other the readme and the "doc" directory. But you could looking thru the source code.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2013 00:43:57 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Why-did-getValidationResponse-fail/m-p/32850#M17394</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-02-01T00:43:57Z</dc:date>
    </item>
  </channel>
</rss>

