<?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: Updating Customer Profile in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Updating-Customer-Profile/m-p/33856#M18355</link>
    <description>&lt;P&gt;Thanks and I do apologize but I used the example in the CIM.markdown file located in the PHP SDK:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Retrieving a Customer Profile -----------------------------&lt;/P&gt;&lt;P&gt;To retrieve a customer profile call the getCustomerProfile method:&lt;/P&gt;&lt;P&gt;$response = $request-&amp;gt;getCustomerProfile($customerProfileId);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Updating a Customer Profile ---------------------------&lt;/P&gt;&lt;P&gt;Call the updateCustomerProfile method with the customerProfileId and customerProfile parameters:&lt;/P&gt;&lt;P&gt;$response = $request-&amp;gt;updateCustomerProfile($customerProfileId, $customerProfile);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did change the retrieve command slighty (using $customerProfile instead of $response). I'm&amp;nbsp; not even sure what you mean by "You can't just use the response directly".&amp;nbsp; Granted I am a C# developer who is trying to grasp some of the PHP object constructs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I tried using an intermediate object to no avail:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; $response = $request-&amp;gt;getCustomerProfile($customerProfileId);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; $customerProfile = $response;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; print_r($customerProfile);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; $response = $request-&amp;gt;updateCustomerProfile($customerProfileId, $customerProfile);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;print_r($response);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you correct or provide a code snippet ? Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Apr 2013 18:06:20 GMT</pubDate>
    <dc:creator>zekez23</dc:creator>
    <dc:date>2013-04-08T18:06:20Z</dc:date>
    <item>
      <title>Updating Customer Profile</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Updating-Customer-Profile/m-p/33838#M18338</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I trying to update a customer profile (no CC credit info) without modifying any data(read, update) using the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$customerProfile = $request-&amp;gt;getCustomerProfile($customerProfileId);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; print_r($customerProfile);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; $response = $request-&amp;gt;updateCustomerProfile($customerProfileId, $customerProfile);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print_r($response);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the results:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993300"&gt;AuthorizeNetCIM_Response Object ( [xml] =&amp;gt; SimpleXMLElement Object ( [messages] =&amp;gt; SimpleXMLElement Object ( [resultCode] =&amp;gt; Ok [message] =&amp;gt; SimpleXMLElement Object ( [code] =&amp;gt; I00001 [text] =&amp;gt; Successful. ) ) [profile] =&amp;gt; SimpleXMLElement Object ( [merchantCustomerId] =&amp;gt; 10752 [description] =&amp;gt; 97SA-XBPS-2JYN-DHQ2-EXME-HQTV-U6TA [email] =&amp;gt; &lt;A target="_blank" href="mailto:paul@bpo-automation.com"&gt;&lt;FONT color="#993300"&gt;paul@bpo-automation.com&lt;/FONT&gt;&lt;/A&gt; [customerProfileId] =&amp;gt; 61505362 [shipToList] =&amp;gt; SimpleXMLElement Object ( [firstName] =&amp;gt; paul [lastName] =&amp;gt; zimmerman [company] =&amp;gt; bpo-automation [address] =&amp;gt; 3306 del monte blvd. # 60 [city] =&amp;gt; marina [state] =&amp;gt; ca [zip] =&amp;gt; 93933 [country] =&amp;gt; usa [phoneNumber] =&amp;gt; 6503800207 [faxNumber] =&amp;gt; SimpleXMLElement Object ( ) [customerAddressId] =&amp;gt; 68994490 ) ) ) [response] =&amp;gt; &lt;A target="_blank" href="mailto:ï»¿OkI00001Successful.1075297SA-XBPS-2JYN-DHQ2-EXME-HQTV-U6TApaul@bpo-automation.com61505362paulzimmermanbpo-automation"&gt;&lt;FONT color="#993300"&gt;ï»¿OkI00001Successful.1075297SA-XBPS-2JYN-DHQ2-EXME-HQTV-U6TApaul@bpo-automation.com61505362paulzimmermanbpo-automation&lt;/FONT&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#993300"&gt;3306 del monte blvd. # 60&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#993300"&gt;marinaca93933usa650380020768994490 [xpath_xml] =&amp;gt; SimpleXMLElement Object ( [messages] =&amp;gt; SimpleXMLElement Object ( [resultCode] =&amp;gt; Ok [message] =&amp;gt; SimpleXMLElement Object ( [code] =&amp;gt; I00001 [text] =&amp;gt; Successful. ) ) [profile] =&amp;gt; SimpleXMLElement Object ( [merchantCustomerId] =&amp;gt; 10752 [description] =&amp;gt; 97SA-XBPS-2JYN-DHQ2-EXME-HQTV-U6TA [email] =&amp;gt; &lt;A target="_blank" href="mailto:paul@bpo-automation.com"&gt;&lt;FONT color="#993300"&gt;paul@bpo-automation.com&lt;/FONT&gt;&lt;/A&gt; [customerProfileId] =&amp;gt; 61505362 [shipToList] =&amp;gt; SimpleXMLElement Object ( [firstName] =&amp;gt; paul [lastName] =&amp;gt; zimmerman [company] =&amp;gt; bpo-automation [address] =&amp;gt; 3306 del monte blvd. # 60 [city] =&amp;gt; marina [state] =&amp;gt; ca [zip] =&amp;gt; 93933 [country] =&amp;gt; usa [phoneNumber] =&amp;gt; 6503800207 [faxNumber] =&amp;gt; SimpleXMLElement Object ( ) [customerAddressId] =&amp;gt; 68994490 ) ) ) ) AuthorizeNetCIM_Response Object ( [xml] =&amp;gt; SimpleXMLElement Object ( [messages] =&amp;gt; SimpleXMLElement Object ( [resultCode] =&amp;gt; Error [message] =&amp;gt; SimpleXMLElement Object ( [code] =&amp;gt; E00003 [text] =&amp;gt; The element 'profile' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'xml' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'merchantCustomerId, description, email, customerProfileId' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. ) ) ) [response] =&amp;gt; ï»¿ErrorE00003The element 'profile' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'xml' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'merchantCustomerId, description, email, customerProfileId' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. [xpath_xml] =&amp;gt; SimpleXMLElement Object ( [messages] =&amp;gt; SimpleXMLElement Object ( [resultCode] =&amp;gt; Error [message] =&amp;gt; SimpleXMLElement Object ( [code] =&amp;gt; E00003 [text] =&amp;gt; The element 'profile' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'xml' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'merchantCustomerId, description, email, customerProfileId' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. ) ) )&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see the requst is good, but the update fails even though no data is not modified(at least not modied directly by code). Please help. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2013 19:17:09 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Updating-Customer-Profile/m-p/33838#M18338</guid>
      <dc:creator>zekez23</dc:creator>
      <dc:date>2013-04-05T19:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Updating Customer Profile</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Updating-Customer-Profile/m-p/33840#M18340</link>
      <description>&lt;P&gt;You can't just use the response directly.&lt;/P&gt;&lt;P&gt;Look at the request for updateCustomerProfile, and response of getCustomerProfile&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://www.authorize.net/support/CIM_XML_guide.pdf"&gt;http://www.authorize.net/support/CIM_XML_guide.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2013 19:50:11 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Updating-Customer-Profile/m-p/33840#M18340</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-04-05T19:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Updating Customer Profile</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Updating-Customer-Profile/m-p/33856#M18355</link>
      <description>&lt;P&gt;Thanks and I do apologize but I used the example in the CIM.markdown file located in the PHP SDK:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Retrieving a Customer Profile -----------------------------&lt;/P&gt;&lt;P&gt;To retrieve a customer profile call the getCustomerProfile method:&lt;/P&gt;&lt;P&gt;$response = $request-&amp;gt;getCustomerProfile($customerProfileId);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Updating a Customer Profile ---------------------------&lt;/P&gt;&lt;P&gt;Call the updateCustomerProfile method with the customerProfileId and customerProfile parameters:&lt;/P&gt;&lt;P&gt;$response = $request-&amp;gt;updateCustomerProfile($customerProfileId, $customerProfile);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did change the retrieve command slighty (using $customerProfile instead of $response). I'm&amp;nbsp; not even sure what you mean by "You can't just use the response directly".&amp;nbsp; Granted I am a C# developer who is trying to grasp some of the PHP object constructs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I tried using an intermediate object to no avail:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; $response = $request-&amp;gt;getCustomerProfile($customerProfileId);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; $customerProfile = $response;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; print_r($customerProfile);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; $response = $request-&amp;gt;updateCustomerProfile($customerProfileId, $customerProfile);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;print_r($response);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you correct or provide a code snippet ? Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2013 18:06:20 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Updating-Customer-Profile/m-p/33856#M18355</guid>
      <dc:creator>zekez23</dc:creator>
      <dc:date>2013-04-08T18:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Updating Customer Profile</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Updating-Customer-Profile/m-p/33857#M18356</link>
      <description>&lt;P&gt;Sorry, I'm a C# developer too.&lt;/P&gt;&lt;P&gt;But, getCustomerProfile give you&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;getCustomerProfileResponse 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;profile&amp;gt;
		&amp;lt;merchantCustomerId&amp;gt;custId123&amp;lt;/merchantCustomerId&amp;gt;
		&amp;lt;description&amp;gt;some description&amp;lt;/description&amp;gt;
		&amp;lt;email&amp;gt;mark@example.com&amp;lt;/email&amp;gt;
		&amp;lt;customerProfileId&amp;gt;10000&amp;lt;/customerProfileId&amp;gt;
		&amp;lt;paymentProfiles&amp;gt;
			&amp;lt;billTo&amp;gt;
				&amp;lt;firstName&amp;gt;John&amp;lt;/firstName&amp;gt;
				&amp;lt;lastName&amp;gt;Doe&amp;lt;/lastName&amp;gt;
				&amp;lt;company&amp;gt;&amp;lt;/company&amp;gt;
				&amp;lt;address&amp;gt;123 Main St.&amp;lt;/address&amp;gt;
				&amp;lt;city&amp;gt;Bellevue&amp;lt;/city&amp;gt;
				&amp;lt;state&amp;gt;WA&amp;lt;/state&amp;gt;
				&amp;lt;zip&amp;gt;98004&amp;lt;/zip&amp;gt;
				&amp;lt;country&amp;gt;USA&amp;lt;/country&amp;gt;
				&amp;lt;phoneNumber&amp;gt;000-000-0000&amp;lt;/phoneNumber&amp;gt;
				&amp;lt;faxNumber&amp;gt;&amp;lt;/faxNumber&amp;gt;
			&amp;lt;/billTo&amp;gt;
			&amp;lt;customerPaymentProfileId&amp;gt;20000&amp;lt;/customerPaymentProfileId&amp;gt;
			&amp;lt;payment&amp;gt;
				&amp;lt;creditCard&amp;gt;
					&amp;lt;cardNumber&amp;gt;XXXX1111&amp;lt;/cardNumber&amp;gt;
					&amp;lt;expirationDate&amp;gt;XXXX&amp;lt;/expirationDate&amp;gt;
				&amp;lt;/creditCard&amp;gt;
			&amp;lt;/payment&amp;gt;
		&amp;lt;/paymentProfiles&amp;gt;
		&amp;lt;paymentProfiles&amp;gt;
			&amp;lt;customerPaymentProfileId&amp;gt;20001&amp;lt;/customerPaymentProfileId&amp;gt;
			&amp;lt;payment&amp;gt;
				&amp;lt;bankAccount&amp;gt;
					&amp;lt;accountType&amp;gt;checking&amp;lt;/accountType&amp;gt;
					&amp;lt;routingNumber&amp;gt;XXXX0000&amp;lt;/routingNumber&amp;gt;
					&amp;lt;accountNumber&amp;gt;XXXX0000&amp;lt;/accountNumber&amp;gt;
					&amp;lt;nameOnAccount&amp;gt;John Doe&amp;lt;/nameOnAccount&amp;gt;
					&amp;lt;bankName&amp;gt;Bank of Washington&amp;lt;/bankName&amp;gt;
				&amp;lt;/bankAccount&amp;gt;
			&amp;lt;/payment&amp;gt;
		&amp;lt;/paymentProfiles&amp;gt;
		&amp;lt;shipToList&amp;gt;
			&amp;lt;firstName&amp;gt;John&amp;lt;/firstName&amp;gt;
			&amp;lt;lastName&amp;gt;Doe&amp;lt;/lastName&amp;gt;
			&amp;lt;company&amp;gt;&amp;lt;/company&amp;gt;
			&amp;lt;address&amp;gt;123 Main St.&amp;lt;/address&amp;gt;
			&amp;lt;city&amp;gt;Bellevue&amp;lt;/city&amp;gt;
			&amp;lt;state&amp;gt;WA&amp;lt;/state&amp;gt;
			&amp;lt;zip&amp;gt;98004&amp;lt;/zip&amp;gt;
			&amp;lt;country&amp;gt;USA&amp;lt;/country&amp;gt;
			&amp;lt;phoneNumber&amp;gt;000-000-0000&amp;lt;/phoneNumber&amp;gt;
			&amp;lt;faxNumber&amp;gt;&amp;lt;/faxNumber&amp;gt;
		&amp;lt;/shipToList&amp;gt;
		&amp;lt;shipToList&amp;gt;
			&amp;lt;firstName&amp;gt;Jane&amp;lt;/firstName&amp;gt;
			&amp;lt;lastName&amp;gt;Doe&amp;lt;/lastName&amp;gt;
			&amp;lt;address&amp;gt;123 Main St.&amp;lt;/address&amp;gt;
			&amp;lt;city&amp;gt;Bellevue&amp;lt;/city&amp;gt;
			&amp;lt;state&amp;gt;WA&amp;lt;/state&amp;gt;
			&amp;lt;zip&amp;gt;98004&amp;lt;/zip&amp;gt;
			&amp;lt;country&amp;gt;USA&amp;lt;/country&amp;gt;
			&amp;lt;phoneNumber&amp;gt;000-000-0000&amp;lt;/phoneNumber&amp;gt;
		&amp;lt;/shipToList&amp;gt;
	&amp;lt;/profile&amp;gt;
&amp;lt;/getCustomerProfileResponse&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;And the request for updateCustomerProfile is&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;updateCustomerProfileRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;
	&amp;lt;merchantAuthentication&amp;gt;
		&amp;lt;name&amp;gt;YourUserLogin&amp;lt;/name&amp;gt;
		&amp;lt;transactionKey&amp;gt;YourTranKey&amp;lt;/transactionKey&amp;gt;
	&amp;lt;/merchantAuthentication&amp;gt;
	&amp;lt;profile&amp;gt;
		&amp;lt;merchantCustomerId&amp;gt;custId123&amp;lt;/merchantCustomerId&amp;gt;
		&amp;lt;description&amp;gt;some description&amp;lt;/description&amp;gt;
		&amp;lt;email&amp;gt;newaddress@example.com&amp;lt;/email&amp;gt;
		&amp;lt;customerProfileId&amp;gt;10000&amp;lt;/customerProfileId&amp;gt;
	&amp;lt;/profile&amp;gt;
&amp;lt;/updateCustomerProfileRequest&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Bascially, they are different type.&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>Mon, 08 Apr 2013 18:22:51 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Updating-Customer-Profile/m-p/33857#M18356</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-04-08T18:22:51Z</dc:date>
    </item>
  </channel>
</rss>

