<?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: Bad XML generation (from PHP array) in createCustomerPaymentProfile method call in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Bad-XML-generation-from-PHP-array-in/m-p/58115#M32787</link>
    <description>&lt;P&gt;Bump. Can you please provide examples?&lt;/P&gt;</description>
    <pubDate>Thu, 18 May 2017 14:56:33 GMT</pubDate>
    <dc:creator>jima</dc:creator>
    <dc:date>2017-05-18T14:56:33Z</dc:date>
    <item>
      <title>Bad XML generation (from PHP array) in createCustomerPaymentProfile method call</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Bad-XML-generation-from-PHP-array-in/m-p/58068#M32740</link>
      <description>&lt;P&gt;Can someone explain why the XML generation in the PHP SDK is messing up?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the SDK method call to createCustomerPaymentProfile():&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$authNetCusObj = new AuthorizeNetCIM();
$authorizeDotNetResponse = $authNetCusObj-&amp;gt;createCustomerPaymentProfile($custProfId, $formattedRequestData);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the PHP array that's being passed into (which the XML is supposed to get generated from):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$formattedRequestData = array(
	'billTo' =&amp;gt; array(
		'firstName' =&amp;gt; 'TestKen',
		'lastName' =&amp;gt; 'TestBraz',
		'address' =&amp;gt; '123 Testa Trove',
		'city' =&amp;gt; 'Hahahah',
		'state' =&amp;gt; 'Utah',
		'zip' =&amp;gt; '84440'
	),
	'payment' =&amp;gt; array(
		'opaqueData' =&amp;gt; array(
			'dataDescription' =&amp;gt; 'COMMON.ACCEPT.INAPP.PAYMENT',
			'dataValue' =&amp;gt; trim($data['dataNonce'])
		)
	)
);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the (bad) XML that gets generated in the call:&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;createCustomerPaymentProfileRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;
	&amp;lt;merchantAuthentication&amp;gt;
		&amp;lt;name&amp;gt;Protected&amp;lt;/name&amp;gt;
		&amp;lt;transactionKey&amp;gt;Protected&amp;lt;/transactionKey&amp;gt;
	&amp;lt;/merchantAuthentication&amp;gt;
	&amp;lt;customerProfileId&amp;gt;181&amp;lt;/customerProfileId&amp;gt;
	&amp;lt;paymentProfile&amp;gt;
		&amp;lt;billTo&amp;gt;
			&amp;lt;0&amp;gt;TestKen&amp;lt;/0&amp;gt;
		&amp;lt;/billTo&amp;gt;
		&amp;lt;billTo&amp;gt;
			&amp;lt;0&amp;gt;TestBraz&amp;lt;/0&amp;gt;
		&amp;lt;/billTo&amp;gt;
		&amp;lt;billTo&amp;gt;
			&amp;lt;0&amp;gt;123 Testa Trove&amp;lt;/0&amp;gt;
		&amp;lt;/billTo&amp;gt;
		&amp;lt;billTo&amp;gt;
			&amp;lt;0&amp;gt;Test City&amp;lt;/0&amp;gt;
		&amp;lt;/billTo&amp;gt;
		&amp;lt;billTo&amp;gt;
			&amp;lt;0&amp;gt;Test State&amp;lt;/0&amp;gt;
		&amp;lt;/billTo&amp;gt;
		&amp;lt;billTo&amp;gt;
			&amp;lt;0&amp;gt;84440&amp;lt;/0&amp;gt;
		&amp;lt;/billTo&amp;gt;
		&amp;lt;payment&amp;gt;
			&amp;lt;dataDescription&amp;gt;COMMON.ACCEPT.INAPP.PAYMENT&amp;lt;/dataDescription&amp;gt;
			&amp;lt;dataValue&amp;gt;eyJjfMl&amp;lt;/dataValue&amp;gt;
		&amp;lt;/payment&amp;gt;
	&amp;lt;/paymentProfile&amp;gt;
&amp;lt;/createCustomerPaymentProfileRequest&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 May 2017 21:52:57 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Bad-XML-generation-from-PHP-array-in/m-p/58068#M32740</guid>
      <dc:creator>jima</dc:creator>
      <dc:date>2017-05-12T21:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Bad XML generation (from PHP array) in createCustomerPaymentProfile method call</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Bad-XML-generation-from-PHP-array-in/m-p/58082#M32754</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The question was asked and answered in another thread. &amp;nbsp;&lt;A href="https://community.developer.authorize.net/t5/Integration-and-Testing/Unclear-basic-workflow-documentation-Accept-js/m-p/58080#M32752" target="_blank"&gt;https://community.developer.authorize.net/t5/Integration-and-Testing/Unclear-basic-workflow-documentation-Accept-js/m-p/58080#M32752&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2017 16:55:43 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Bad-XML-generation-from-PHP-array-in/m-p/58082#M32754</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2017-05-15T16:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Bad XML generation (from PHP array) in createCustomerPaymentProfile method call</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Bad-XML-generation-from-PHP-array-in/m-p/58083#M32755</link>
      <description>&lt;P&gt;No, it wasn't "answered" in the other thread, The question was re-asked, by me, because no one was responding to this one. But it wasn't answered in the other thread either, so ANY help would be wildly appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2017 16:58:58 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Bad-XML-generation-from-PHP-array-in/m-p/58083#M32755</guid>
      <dc:creator>jima</dc:creator>
      <dc:date>2017-05-15T16:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Bad XML generation (from PHP array) in createCustomerPaymentProfile method call</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Bad-XML-generation-from-PHP-array-in/m-p/58084#M32756</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/21289"&gt;@jima&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Aaron mentioned that what you are attempting to do with our SDK isn't possible unless you can install composer and it's dependencies. &amp;nbsp;Since that is not possible in your scenario, your other option is to write directly to the API using XML or JSON.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2017 17:07:17 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Bad-XML-generation-from-PHP-array-in/m-p/58084#M32756</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2017-05-15T17:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Bad XML generation (from PHP array) in createCustomerPaymentProfile method call</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Bad-XML-generation-from-PHP-array-in/m-p/58085#M32757</link>
      <description>&lt;P&gt;Can you please provide an example of that? That would really be what would help here.&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2017 17:13:09 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Bad-XML-generation-from-PHP-array-in/m-p/58085#M32757</guid>
      <dc:creator>jima</dc:creator>
      <dc:date>2017-05-15T17:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Bad XML generation (from PHP array) in createCustomerPaymentProfile method call</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Bad-XML-generation-from-PHP-array-in/m-p/58115#M32787</link>
      <description>&lt;P&gt;Bump. Can you please provide examples?&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 14:56:33 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Bad-XML-generation-from-PHP-array-in/m-p/58115#M32787</guid>
      <dc:creator>jima</dc:creator>
      <dc:date>2017-05-18T14:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Bad XML generation (from PHP array) in createCustomerPaymentProfile method call</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Bad-XML-generation-from-PHP-array-in/m-p/58176#M32846</link>
      <description>&lt;P&gt;Is there any hope is some follow-up here? Examples of your suggested work-around would be very useful.&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 20:11:29 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Bad-XML-generation-from-PHP-array-in/m-p/58176#M32846</guid>
      <dc:creator>jima</dc:creator>
      <dc:date>2017-05-22T20:11:29Z</dc:date>
    </item>
  </channel>
</rss>

