<?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: XML problem updating CIM profile. Error E00003 in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/XML-problem-updating-CIM-profile-Error-E00003/m-p/56331#M31131</link>
    <description>&lt;P&gt;re: sequence matter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What??? Seriously?!?! XML is OOP and sequence shouldn't matter if it's compliant xml. And how do you suppose one gets the sequence right using your github api that uses SimpleXMLElement with it's -&amp;gt;toXml() method which appears to jumble the order? (I added the elements in order, it seems to have changed the order when creating the xml output)&lt;/P&gt;</description>
    <pubDate>Mon, 05 Dec 2016 21:35:31 GMT</pubDate>
    <dc:creator>treii28</dc:creator>
    <dc:date>2016-12-05T21:35:31Z</dc:date>
    <item>
      <title>XML problem updating CIM profile. Error E00003</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/XML-problem-updating-CIM-profile-Error-E00003/m-p/53517#M28630</link>
      <description>&lt;P&gt;I'm working on a project that uses what appears to be a slightly older version of the PHP SDK. Sadly, the PHP code does not appear to specify any version for the SDK. I have constructed code using this SDK that is supposed to update a CIM profile. I keep getting this error though:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Message: The element 'creditCard' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'expirationDate' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'cardNumber' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; E00003&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It appears to be generating this XML which causes the problem:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;updateCustomerPaymentProfileRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;
	&amp;lt;merchantAuthentication&amp;gt;
		&amp;lt;name&amp;gt;XXXXXXXXX&amp;lt;/name&amp;gt;
		&amp;lt;transactionKey&amp;gt;YYYYYYYY&amp;lt;/transactionKey&amp;gt;
	&amp;lt;/merchantAuthentication&amp;gt;
	&amp;lt;customerProfileId&amp;gt;AAAAAAAA&amp;lt;/customerProfileId&amp;gt;
	&amp;lt;paymentProfile&amp;gt;
		&amp;lt;customerType&amp;gt;individual&amp;lt;/customerType&amp;gt;
		&amp;lt;payment&amp;gt;
			&amp;lt;creditCard&amp;gt;
				&amp;lt;expirationDate&amp;gt;2022-06&amp;lt;/expirationDate&amp;gt;
				&amp;lt;cardCode&amp;gt;456&amp;lt;/cardCode&amp;gt;
			&amp;lt;/creditCard&amp;gt;
		&amp;lt;/payment&amp;gt;
		&amp;lt;customerPaymentProfileId&amp;gt;BBBBBBBB&amp;lt;/customerPaymentProfileId&amp;gt;
	&amp;lt;/paymentProfile&amp;gt;
&amp;lt;/updateCustomerPaymentProfileRequest&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been trying to figure out what's wrong with this XML by checking the API:&lt;/P&gt;&lt;P&gt;&lt;A href="http://developer.authorize.net/api/reference/index.html#customer-profiles-update-customer-payment-profile" target="_blank"&gt;http://developer.authorize.net/api/reference/index.html#customer-profiles-update-customer-payment-profile&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I'm really just doing trial and error.&amp;nbsp; Can someone help me sort this?&amp;nbsp; My code looks something like this:&lt;/P&gt;&lt;PRE&gt;$authorizenet_cim_request = new AuthorizeNetCIM($this-&amp;gt;conf_api_login_id, $this-&amp;gt;conf_api_transaction_key);
$authorizenet_cim_request-&amp;gt;setSandbox($this-&amp;gt;conf_sandbox);
$authorizenet_cim_request-&amp;gt;setLogFile($this-&amp;gt;conf_log_file);

$paymentProfile = new AuthorizeNetPaymentProfile;
$paymentProfile-&amp;gt;customerType = "individual";
$paymentProfile-&amp;gt;payment-&amp;gt;creditCard-&amp;gt;expirationDate = "2022-06";
$paymentProfile-&amp;gt;payment-&amp;gt;creditCard-&amp;gt;cardCode = "456";

$transaction_result = $authorizenet_cim_request-&amp;gt;updateCustomerPaymentProfile("AAAAAAAA", "BBBBBBBB", $paymentProfile);&lt;/PRE&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 17:43:14 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/XML-problem-updating-CIM-profile-Error-E00003/m-p/53517#M28630</guid>
      <dc:creator>sneakyimp</dc:creator>
      <dc:date>2016-01-14T17:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: XML problem updating CIM profile. Error E00003</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/XML-problem-updating-CIM-profile-Error-E00003/m-p/53519#M28632</link>
      <description>&lt;P&gt;&lt;A href="http://developer.authorize.net/api/reference/index.html#customer-profiles-update-customer-payment-profile" target="_blank"&gt;http://developer.authorize.net/api/reference/index.html#customer-profiles-update-customer-payment-profile&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The sequence matter. and you need the credit card# "Number can also be masked, for example, XXXX1111"&lt;/P&gt;&lt;P&gt;Usually you do a get payment profile, then do a update with the masked card#.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 19:23:07 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/XML-problem-updating-CIM-profile-Error-E00003/m-p/53519#M28632</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2016-01-14T19:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: XML problem updating CIM profile. Error E00003</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/XML-problem-updating-CIM-profile-Error-E00003/m-p/53520#M28633</link>
      <description>&lt;P&gt;OK supplying the masked credit card number (which seems really silly to me) is a very helpful tip.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With some trial-and-error, I've managed to get something working with the sandbox API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apparently the API docs are wrong. When you don't supply values, rather than the API blanking these in the system, it leaves the prior setting -- at least in most cases -- with the sandbox.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 21:59:23 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/XML-problem-updating-CIM-profile-Error-E00003/m-p/53520#M28633</guid>
      <dc:creator>sneakyimp</dc:creator>
      <dc:date>2016-01-14T21:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: XML problem updating CIM profile. Error E00003</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/XML-problem-updating-CIM-profile-Error-E00003/m-p/56331#M31131</link>
      <description>&lt;P&gt;re: sequence matter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What??? Seriously?!?! XML is OOP and sequence shouldn't matter if it's compliant xml. And how do you suppose one gets the sequence right using your github api that uses SimpleXMLElement with it's -&amp;gt;toXml() method which appears to jumble the order? (I added the elements in order, it seems to have changed the order when creating the xml output)&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 21:35:31 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/XML-problem-updating-CIM-profile-Error-E00003/m-p/56331#M31131</guid>
      <dc:creator>treii28</dc:creator>
      <dc:date>2016-12-05T21:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: XML problem updating CIM profile. Error E00003</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/XML-problem-updating-CIM-profile-Error-E00003/m-p/56332#M31132</link>
      <description>&lt;P&gt;woops, the SimpleXMLElement method is -&amp;gt;asXML()&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 21:37:08 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/XML-problem-updating-CIM-profile-Error-E00003/m-p/56332#M31132</guid>
      <dc:creator>treii28</dc:creator>
      <dc:date>2016-12-05T21:37:08Z</dc:date>
    </item>
  </channel>
</rss>

