<?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: No card type in XML response? in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/No-card-type-in-XML-response/m-p/37355#M20704</link>
    <description>&lt;P&gt;Are you using Card Present AIM Integration? using the SDKs or your own coding?&lt;/P&gt;&lt;P&gt;22 is card type for Card Present response but for Card NOT present is position 52&lt;/P&gt;</description>
    <pubDate>Thu, 12 Dec 2013 00:32:51 GMT</pubDate>
    <dc:creator>RaynorC1emen7</dc:creator>
    <dc:date>2013-12-12T00:32:51Z</dc:date>
    <item>
      <title>No card type in XML response?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/No-card-type-in-XML-response/m-p/37353#M20703</link>
      <description>&lt;P&gt;In AIM, while the card type is returned when using the delimited response in position 22, there appears to be no such information in the response message.&lt;/P&gt;&lt;P&gt;On the other hand the xml response seems to offer more message information in the case of errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I actually have to use the delimited response to get the card type and give up the more elegant an maintainable xml code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hans&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2013 00:19:44 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/No-card-type-in-XML-response/m-p/37353#M20703</guid>
      <dc:creator>arcasys1</dc:creator>
      <dc:date>2013-12-12T00:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: No card type in XML response?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/No-card-type-in-XML-response/m-p/37355#M20704</link>
      <description>&lt;P&gt;Are you using Card Present AIM Integration? using the SDKs or your own coding?&lt;/P&gt;&lt;P&gt;22 is card type for Card Present response but for Card NOT present is position 52&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2013 00:32:51 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/No-card-type-in-XML-response/m-p/37355#M20704</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-12-12T00:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: No card type in XML response?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/No-card-type-in-XML-response/m-p/37579#M20762</link>
      <description>&lt;P&gt;Thank you for this, but it doesn't answer my question.&lt;/P&gt;&lt;P&gt;I'm using own coded Card Present AIM and field 22 in the the 'delimited string' response is fine and works for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I rephrase my question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When XML is used as a response type, which btw is default,&amp;nbsp; there is no equivalent to field 22 in the 'delimited' response.&lt;/P&gt;&lt;P&gt;Field 22 is not the only one missing in the XML response.&lt;/P&gt;&lt;P&gt;So, why are many fields that are available in the 'delimited' response not available in the XML response?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the mean time I've found a decent way to retrieve return values by a name using the following method (Java code):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    private Map&amp;lt;String, String&amp;gt; r_split(String response) {
        Map&amp;lt;String, String&amp;gt; rmap = new HashMap&amp;lt;String, String&amp;gt;();
        String[] values = response.split(",");
        try {
            rmap.put("Version", values[0]);
            rmap.put("ResponseCode", values[1]);    // *
            rmap.put("ReasonCode", values[2]);
            rmap.put("ReasonText", values[3]);
            rmap.put("AuthCode", values[4]);        //*
            rmap.put("AVSResultCode", values[5]);
            rmap.put("CVVResultCode", values[6]);
            rmap.put("TransID", values[7]);
            rmap.put("MD5Hash", values[8]);
            rmap.put("UserRef", values[9]);
            rmap.put("CardNumber", values[20]);
            rmap.put("CardType", values[21]);
            rmap.put("SplitTenderId", values[22]);
            rmap.put("RequestedAmount", values[23]);
            rmap.put("ApprovedAmount", values[24]);
            rmap.put("RemainingBalance", values[25]);
        } catch (ArrayIndexOutOfBoundsException e) {
            //TODO insert more  codes as necessary
        }
        return rmap;
    } &lt;/PRE&gt;&lt;P&gt;Maybe someone finds this helpful Note that index numbers are always field-number - 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps some day Authorize.Net will surprise us with a SOAP interface and present a decent solution to add a tip to a previuos transaction...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2013 10:43:46 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/No-card-type-in-XML-response/m-p/37579#M20762</guid>
      <dc:creator>arcasys1</dc:creator>
      <dc:date>2013-12-19T10:43:46Z</dc:date>
    </item>
  </channel>
</rss>

