<?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 CIM cardCode bug in Java SDK v 1.4.3 in Community Feedback</title>
    <link>https://community.developer.cybersource.com/t5/Community-Feedback/CIM-cardCode-bug-in-Java-SDK-v-1-4-3/m-p/12714#M134</link>
    <description>&lt;P&gt;I found a critical bug in the Java SDK v 1.4.3. When I create a CIM createCustomerProfileTransactionRequest transaction, I do not provide a cardCode value. The SDK is generating XML that includes an empty-element for cardCode, when cardCode is set to null in the Java SDK. This is incorrect behavior. The SDK should not include the cardCode XML element at all, when not set. The error that I kept getting from the SDK is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:cardCode' element is invalid - The value '' is invalid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To fix this, I had to explicity remove &amp;lt;cardCode&amp;gt;&amp;lt;/cardCode&amp;gt; from the generated XML and it started working again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can fix this problem in the SDK by editing net.authorize.cim.Transaction and only conditionally running the following piece of code if the cardCode is a non-null and non-empty-string value:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // card code&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Element card_code_el = document.createElement(AuthNetField.ELEMENT_CARD_CODE.getFieldName());&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;card_code_el.appendChild(document.getDocument().createTextNode(this.paymentTransaction.getCardCode()));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;profile_trans_x_el.appendChild(card_code_el);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 May 2011 17:28:10 GMT</pubDate>
    <dc:creator>tonic-bom</dc:creator>
    <dc:date>2011-05-06T17:28:10Z</dc:date>
    <item>
      <title>CIM cardCode bug in Java SDK v 1.4.3</title>
      <link>https://community.developer.cybersource.com/t5/Community-Feedback/CIM-cardCode-bug-in-Java-SDK-v-1-4-3/m-p/12714#M134</link>
      <description>&lt;P&gt;I found a critical bug in the Java SDK v 1.4.3. When I create a CIM createCustomerProfileTransactionRequest transaction, I do not provide a cardCode value. The SDK is generating XML that includes an empty-element for cardCode, when cardCode is set to null in the Java SDK. This is incorrect behavior. The SDK should not include the cardCode XML element at all, when not set. The error that I kept getting from the SDK is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:cardCode' element is invalid - The value '' is invalid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To fix this, I had to explicity remove &amp;lt;cardCode&amp;gt;&amp;lt;/cardCode&amp;gt; from the generated XML and it started working again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can fix this problem in the SDK by editing net.authorize.cim.Transaction and only conditionally running the following piece of code if the cardCode is a non-null and non-empty-string value:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // card code&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Element card_code_el = document.createElement(AuthNetField.ELEMENT_CARD_CODE.getFieldName());&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;card_code_el.appendChild(document.getDocument().createTextNode(this.paymentTransaction.getCardCode()));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;profile_trans_x_el.appendChild(card_code_el);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2011 17:28:10 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Community-Feedback/CIM-cardCode-bug-in-Java-SDK-v-1-4-3/m-p/12714#M134</guid>
      <dc:creator>tonic-bom</dc:creator>
      <dc:date>2011-05-06T17:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: CIM cardCode bug in Java SDK v 1.4.3</title>
      <link>https://community.developer.cybersource.com/t5/Community-Feedback/CIM-cardCode-bug-in-Java-SDK-v-1-4-3/m-p/12900#M137</link>
      <description>&lt;P&gt;Hi tonic-bom, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the heads up! I've reported your bug find to our development teams so that they can include a fix for it in an upcoming release. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Michelle&lt;/P&gt;
&lt;P&gt;Developer Community Manager&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2011 21:21:28 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Community-Feedback/CIM-cardCode-bug-in-Java-SDK-v-1-4-3/m-p/12900#M137</guid>
      <dc:creator>Michelle</dc:creator>
      <dc:date>2011-05-16T21:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: CIM cardCode bug in Java SDK v 1.4.3</title>
      <link>https://community.developer.cybersource.com/t5/Community-Feedback/CIM-cardCode-bug-in-Java-SDK-v-1-4-3/m-p/19956#M181</link>
      <description>&lt;P&gt;michelle,&lt;/P&gt;&lt;P&gt;has your development team fixed the cardCode (cvv) bug?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;cron&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2011 09:31:21 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Community-Feedback/CIM-cardCode-bug-in-Java-SDK-v-1-4-3/m-p/19956#M181</guid>
      <dc:creator>cronsystems</dc:creator>
      <dc:date>2011-12-13T09:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: CIM cardCode bug in Java SDK v 1.4.3</title>
      <link>https://community.developer.cybersource.com/t5/Community-Feedback/CIM-cardCode-bug-in-Java-SDK-v-1-4-3/m-p/20276#M182</link>
      <description>&lt;P&gt;Hey there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, I believe this was fixed with the last release. Let us know if you're still seeing it though!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Michelle&lt;/P&gt;
&lt;P&gt;Developer Community Manager&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2011 18:49:53 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Community-Feedback/CIM-cardCode-bug-in-Java-SDK-v-1-4-3/m-p/20276#M182</guid>
      <dc:creator>Michelle</dc:creator>
      <dc:date>2011-12-19T18:49:53Z</dc:date>
    </item>
  </channel>
</rss>

