<?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: CIM createCustomerProfileTransactionRequest and validationMode in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-createCustomerProfileTransactionRequest-and-validationMode/m-p/23257#M12529</link>
    <description>&lt;P&gt;TJ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&amp;nbsp; Where can I find this PHP library?&amp;nbsp; I've been using John Conde's compliation for my XML needs.&amp;nbsp; I've looked in the CIM_XML guide PDF, John Conde's GitHub site and I downloaded the anet_php_sdk-1.1.8 and I don't see where the validationMode is being inserted on a createCustomerProfileTransactionRequest.&amp;nbsp; If I am missing something could you post where you found that?&lt;/P&gt;</description>
    <pubDate>Sun, 19 Feb 2012 23:02:38 GMT</pubDate>
    <dc:creator>pberce</dc:creator>
    <dc:date>2012-02-19T23:02:38Z</dc:date>
    <item>
      <title>CIM createCustomerProfileTransactionRequest and validationMode</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-createCustomerProfileTransactionRequest-and-validationMode/m-p/23253#M12527</link>
      <description>&lt;P&gt;I've am using the CIM XML API and I wanted to run some test auth/capture calls.&amp;nbsp; I can see by the documentation that I should be using createCustomerProfileTransactionRequest.&amp;nbsp; In my research for other possibilities (AIM) I see that in that process of making your auth/capture calls you can set a&amp;nbsp;validationMode of "testMode", "liveMode" or "none".&amp;nbsp; What I don't see is this option for the CIM XML createCustomerProfileTransactionRequest. I downloaded and searched the schema for CIM XML and I can see there is no validationMode for createCustomerProfileTransactionRequest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is, to perform test calls using createCustomerProfileTransactionRequest must I put my account into "Test Mode" to do this? And yes, I realize that I could also test against a Test Account.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Feb 2012 15:34:42 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-createCustomerProfileTransactionRequest-and-validationMode/m-p/23253#M12527</guid>
      <dc:creator>pberce</dc:creator>
      <dc:date>2012-02-19T15:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: CIM createCustomerProfileTransactionRequest and validationMode</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-createCustomerProfileTransactionRequest-and-validationMode/m-p/23255#M12528</link>
      <description>&lt;P&gt;The best way to test is to use live mode on a developer (test) account. Test mode on a production account does not come as close to producing the same results as live mode on a production account.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Incidently, looking at the PHP library, it appears validationMode is being inserted just before extraOptions. I could be wrong, of course.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Feb 2012 22:47:57 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-createCustomerProfileTransactionRequest-and-validationMode/m-p/23255#M12528</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2012-02-19T22:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: CIM createCustomerProfileTransactionRequest and validationMode</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-createCustomerProfileTransactionRequest-and-validationMode/m-p/23257#M12529</link>
      <description>&lt;P&gt;TJ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&amp;nbsp; Where can I find this PHP library?&amp;nbsp; I've been using John Conde's compliation for my XML needs.&amp;nbsp; I've looked in the CIM_XML guide PDF, John Conde's GitHub site and I downloaded the anet_php_sdk-1.1.8 and I don't see where the validationMode is being inserted on a createCustomerProfileTransactionRequest.&amp;nbsp; If I am missing something could you post where you found that?&lt;/P&gt;</description>
      <pubDate>Sun, 19 Feb 2012 23:02:38 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-createCustomerProfileTransactionRequest-and-validationMode/m-p/23257#M12529</guid>
      <dc:creator>pberce</dc:creator>
      <dc:date>2012-02-19T23:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: CIM createCustomerProfileTransactionRequest and validationMode</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-createCustomerProfileTransactionRequest-and-validationMode/m-p/23267#M12534</link>
      <description>&lt;P&gt;Well, each function in the PHP SDK calls the _constructXml function, like so:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$this-&amp;gt;_validationMode = $validationMode;
$this-&amp;gt;_constructXml("createCustomerProfileRequest");&lt;BR /&gt;...&lt;BR /&gt;$this-&amp;gt;_sendRequest();&lt;/PRE&gt;&lt;P&gt;The tricky thing is that the constructXml function does not actually add the validationMode tag. sendRequest calls the function in AuthorizeNetRequest.php, which calls this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$this-&amp;gt;_setPostString();&lt;/PRE&gt;&lt;P&gt;Which calls the function back in AuthorizeNetCIM.php, which adds the validateMode tag:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;protected function _setPostString()
    {
        ($this-&amp;gt;_validationMode != "none" ? $this-&amp;gt;_xml-&amp;gt;addChild('validationMode',$this-&amp;gt;_validationMode) : "");
        $this-&amp;gt;_post_string = $this-&amp;gt;_xml-&amp;gt;asXML();
        
        // Add extraOptions CDATA
        if ($this-&amp;gt;_extraOptions) {
            $this-&amp;gt;_xml-&amp;gt;addChild("extraOptions");
            $this-&amp;gt;_post_string = str_replace("&amp;lt;extraOptions&amp;gt;&amp;lt;/extraOptions&amp;gt;",'&amp;lt;extraOptions&amp;gt;&amp;lt;![CDATA[' . $this-&amp;gt;_extraOptions . ']]&amp;gt;&amp;lt;/extraOptions&amp;gt;', $this-&amp;gt;_xml-&amp;gt;asXML());
        }
    }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Don't ask me why they organized it like this. But the upshot is that these two things get added to the end of the XML.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2012 10:03:05 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-createCustomerProfileTransactionRequest-and-validationMode/m-p/23267#M12534</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2012-02-20T10:03:05Z</dc:date>
    </item>
  </channel>
</rss>

