<?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: Getting error E00002 The content-type specified is not supported in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-error-E00002-The-content-type-specified-is-not-supported/m-p/33609#M18116</link>
    <description>&lt;P&gt;I revised my code to use curl and this is what I have. Does this look correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$Order = $this-&amp;gt;Order;
	
$xml = '
 
&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;createCustomerProfileTransactionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;		
&amp;lt;merchantAuthentication&amp;gt;
&amp;lt;name&amp;gt;xxx&amp;lt;/name&amp;gt;
&amp;lt;transactionKey&amp;gt;xxx&amp;lt;/transactionKey&amp;gt;
&amp;lt;/merchantAuthentication&amp;gt;
&amp;lt;Transaction&amp;gt;
&amp;lt;profileTransAuthCapture&amp;gt;
&amp;lt;amount&amp;gt;10.95&amp;lt;/amount&amp;gt;
&amp;lt;tax&amp;gt;
&amp;lt;amount&amp;gt;1.00&amp;lt;/amount&amp;gt;
&amp;lt;name&amp;gt;state sales tax&amp;lt;/name&amp;gt;
&amp;lt;description&amp;gt;descstate sales tax&amp;lt;/description&amp;gt;
&amp;lt;/tax&amp;gt;
&amp;lt;lineItems&amp;gt;
&amp;lt;lineItem&amp;gt;
&amp;lt;itemId&amp;gt;1&amp;lt;/itemId&amp;gt;
&amp;lt;name&amp;gt;widget 5&amp;lt;/name&amp;gt;
&amp;lt;description&amp;gt;desc of widgt 5&amp;lt;/description&amp;gt;
&amp;lt;quantity&amp;gt;2&amp;lt;/quantity&amp;gt;
&amp;lt;unitPrice&amp;gt;5.00&amp;lt;/unitPrice&amp;gt;
&amp;lt;/lineItem&amp;gt;
&amp;lt;lineItem&amp;gt;
&amp;lt;itemId&amp;gt;2&amp;lt;/itemId&amp;gt;
&amp;lt;name&amp;gt;widget 6&amp;lt;/name&amp;gt;
&amp;lt;description&amp;gt;desccrition widget 6&amp;lt;/description&amp;gt;
&amp;lt;quantity&amp;gt;1&amp;lt;/quantity&amp;gt;
&amp;lt;unitPrice&amp;gt;8.00&amp;lt;/unitPrice&amp;gt;
&amp;lt;/lineItem&amp;gt;
&amp;lt;/lineItems&amp;gt;
&amp;lt;customerProfileId&amp;gt;129&amp;lt;/customerProfileId&amp;gt;
&amp;lt;customerPaymentProfileId&amp;gt;119&amp;lt;/customerPaymentProfileId&amp;gt;
&amp;lt;customerShippingAddressId&amp;gt;120&amp;lt;/customerShippingAddressId&amp;gt;
&amp;lt;order&amp;gt;
&amp;lt;invoiceNumber &amp;gt;INV000005&amp;lt;/invoiceNumber&amp;gt;
&amp;lt;description&amp;gt;description of transaction&amp;lt;/description&amp;gt;
&amp;lt;purchaseOrderNumber&amp;gt;PONUM000005&amp;lt;/purchaseOrderNumber&amp;gt;
&amp;lt;/order&amp;gt;
&amp;lt;taxExempt&amp;gt;false&amp;lt;/taxExempt&amp;gt;
&amp;lt;recurringBilling&amp;gt;false&amp;lt;/recurringBilling&amp;gt;
&amp;lt;cardCode&amp;gt;000&amp;lt;/cardCode&amp;gt;
&amp;lt;/profileTransAuthCapture&amp;gt;
&amp;lt;/transaction&amp;gt;
&amp;lt;/createCustomerProfileTransactionRequest&amp;gt;';
		 
		
$url = "&lt;A target="_blank" href="https://apitest.authorize.net/xml/v1/request.api"&gt;https://apitest.authorize.net/xml/v1/request.api&lt;/A&gt;";
 
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_MUTE, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: text/xml'));
curl_setopt($ch, CURLOPT_POSTFIELDS, "$xml");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
curl_close($ch);
 }	&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Mar 2013 14:03:46 GMT</pubDate>
    <dc:creator>mallen</dc:creator>
    <dc:date>2013-03-21T14:03:46Z</dc:date>
    <item>
      <title>Getting error E00002 The content-type specified is not supported</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-error-E00002-The-content-type-specified-is-not-supported/m-p/33593#M18102</link>
      <description>&lt;P&gt;I am getting error E00002 The content-type specified is not supported. The only supported content-types are text/xml&lt;BR /&gt;and application/xml.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this look correct? If so then I can look somewhere else in the code.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;$_ = array('&amp;lt;?xml version="1.0"encoding=\"utf-8\" ?&amp;gt;'."\n");
$_[] = '&amp;lt;createCustomerProfileTransactionRequest xmlns=\"&lt;A target="_blank" href="https://api.authorize.net/xml/v1/request.api"&gt;https://api.authorize.net/xml/v1/request.api&lt;/A&gt;\"&amp;gt;';		
$_[] = '&amp;lt;merchantAuthentication&amp;gt;';
$_[] = '&amp;lt;name&amp;gt;xxx&amp;lt;/name&amp;gt;';
$_[] = '&amp;lt;transactionKey&amp;gt;xxx&amp;lt;/transactionKey&amp;gt;';
$_[] = '&amp;lt;/merchantAuthentication&amp;gt;';
$_[] = '&amp;lt;Transaction&amp;gt;';

$_[] = '&amp;lt;profileTransAuthCapture&amp;gt;'; ..and so on.....&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2013 19:05:59 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-error-E00002-The-content-type-specified-is-not-supported/m-p/33593#M18102</guid>
      <dc:creator>mallen</dc:creator>
      <dc:date>2013-03-20T19:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error E00002 The content-type specified is not supported</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-error-E00002-The-content-type-specified-is-not-supported/m-p/33594#M18103</link>
      <description>&lt;P&gt;It not the data, it is on the request&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2013 20:03:21 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-error-E00002-The-content-type-specified-is-not-supported/m-p/33594#M18103</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-03-20T20:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error E00002 The content-type specified is not supported</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-error-E00002-The-content-type-specified-is-not-supported/m-p/33595#M18104</link>
      <description>&lt;P&gt;Thanks. Do you mean the request sending to, or request response coming back?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2013 20:47:11 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-error-E00002-The-content-type-specified-is-not-supported/m-p/33595#M18104</guid>
      <dc:creator>mallen</dc:creator>
      <dc:date>2013-03-20T20:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error E00002 The content-type specified is not supported</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-error-E00002-The-content-type-specified-is-not-supported/m-p/33598#M18107</link>
      <description>&lt;P&gt;request sending.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2013 23:06:30 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-error-E00002-The-content-type-specified-is-not-supported/m-p/33598#M18107</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-03-20T23:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error E00002 The content-type specified is not supported</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-error-E00002-The-content-type-specified-is-not-supported/m-p/33604#M18111</link>
      <description>&lt;P&gt;Since I get the error then atleaset its getting to Authorize.net right?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2013 12:06:50 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-error-E00002-The-content-type-specified-is-not-supported/m-p/33604#M18111</guid>
      <dc:creator>mallen</dc:creator>
      <dc:date>2013-03-21T12:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error E00002 The content-type specified is not supported</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-error-E00002-The-content-type-specified-is-not-supported/m-p/33605#M18112</link>
      <description>&lt;P&gt;yes. that an authorize.net error&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2013 12:19:22 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-error-E00002-The-content-type-specified-is-not-supported/m-p/33605#M18112</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-03-21T12:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error E00002 The content-type specified is not supported</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-error-E00002-The-content-type-specified-is-not-supported/m-p/33609#M18116</link>
      <description>&lt;P&gt;I revised my code to use curl and this is what I have. Does this look correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$Order = $this-&amp;gt;Order;
	
$xml = '
 
&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;createCustomerProfileTransactionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;		
&amp;lt;merchantAuthentication&amp;gt;
&amp;lt;name&amp;gt;xxx&amp;lt;/name&amp;gt;
&amp;lt;transactionKey&amp;gt;xxx&amp;lt;/transactionKey&amp;gt;
&amp;lt;/merchantAuthentication&amp;gt;
&amp;lt;Transaction&amp;gt;
&amp;lt;profileTransAuthCapture&amp;gt;
&amp;lt;amount&amp;gt;10.95&amp;lt;/amount&amp;gt;
&amp;lt;tax&amp;gt;
&amp;lt;amount&amp;gt;1.00&amp;lt;/amount&amp;gt;
&amp;lt;name&amp;gt;state sales tax&amp;lt;/name&amp;gt;
&amp;lt;description&amp;gt;descstate sales tax&amp;lt;/description&amp;gt;
&amp;lt;/tax&amp;gt;
&amp;lt;lineItems&amp;gt;
&amp;lt;lineItem&amp;gt;
&amp;lt;itemId&amp;gt;1&amp;lt;/itemId&amp;gt;
&amp;lt;name&amp;gt;widget 5&amp;lt;/name&amp;gt;
&amp;lt;description&amp;gt;desc of widgt 5&amp;lt;/description&amp;gt;
&amp;lt;quantity&amp;gt;2&amp;lt;/quantity&amp;gt;
&amp;lt;unitPrice&amp;gt;5.00&amp;lt;/unitPrice&amp;gt;
&amp;lt;/lineItem&amp;gt;
&amp;lt;lineItem&amp;gt;
&amp;lt;itemId&amp;gt;2&amp;lt;/itemId&amp;gt;
&amp;lt;name&amp;gt;widget 6&amp;lt;/name&amp;gt;
&amp;lt;description&amp;gt;desccrition widget 6&amp;lt;/description&amp;gt;
&amp;lt;quantity&amp;gt;1&amp;lt;/quantity&amp;gt;
&amp;lt;unitPrice&amp;gt;8.00&amp;lt;/unitPrice&amp;gt;
&amp;lt;/lineItem&amp;gt;
&amp;lt;/lineItems&amp;gt;
&amp;lt;customerProfileId&amp;gt;129&amp;lt;/customerProfileId&amp;gt;
&amp;lt;customerPaymentProfileId&amp;gt;119&amp;lt;/customerPaymentProfileId&amp;gt;
&amp;lt;customerShippingAddressId&amp;gt;120&amp;lt;/customerShippingAddressId&amp;gt;
&amp;lt;order&amp;gt;
&amp;lt;invoiceNumber &amp;gt;INV000005&amp;lt;/invoiceNumber&amp;gt;
&amp;lt;description&amp;gt;description of transaction&amp;lt;/description&amp;gt;
&amp;lt;purchaseOrderNumber&amp;gt;PONUM000005&amp;lt;/purchaseOrderNumber&amp;gt;
&amp;lt;/order&amp;gt;
&amp;lt;taxExempt&amp;gt;false&amp;lt;/taxExempt&amp;gt;
&amp;lt;recurringBilling&amp;gt;false&amp;lt;/recurringBilling&amp;gt;
&amp;lt;cardCode&amp;gt;000&amp;lt;/cardCode&amp;gt;
&amp;lt;/profileTransAuthCapture&amp;gt;
&amp;lt;/transaction&amp;gt;
&amp;lt;/createCustomerProfileTransactionRequest&amp;gt;';
		 
		
$url = "&lt;A target="_blank" href="https://apitest.authorize.net/xml/v1/request.api"&gt;https://apitest.authorize.net/xml/v1/request.api&lt;/A&gt;";
 
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_MUTE, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: text/xml'));
curl_setopt($ch, CURLOPT_POSTFIELDS, "$xml");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
curl_close($ch);
 }	&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2013 14:03:46 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-error-E00002-The-content-type-specified-is-not-supported/m-p/33609#M18116</guid>
      <dc:creator>mallen</dc:creator>
      <dc:date>2013-03-21T14:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error E00002 The content-type specified is not supported</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-error-E00002-The-content-type-specified-is-not-supported/m-p/33610#M18117</link>
      <description>&lt;P&gt;does it run?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2013 14:06:14 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-error-E00002-The-content-type-specified-is-not-supported/m-p/33610#M18117</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-03-21T14:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error E00002 The content-type specified is not supported</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-error-E00002-The-content-type-specified-is-not-supported/m-p/33611#M18118</link>
      <description>&lt;P&gt;When I echo the $xml I just get a line on the top of the screen with the values all run together. It does't print&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;createCustomerProfileTransactionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;lt;merchantAuthentication&amp;gt;&lt;BR /&gt;&amp;lt;name&amp;gt;8p96LNvvGVj&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;lt;transactionKey&amp;gt;66W332LWLW7jaGyd&amp;lt;/transactionKey&amp;gt;&lt;BR /&gt;&amp;lt;/merchantAuthentication&amp;gt;&lt;BR /&gt;&amp;lt;Transaction&amp;gt;&lt;BR /&gt;&amp;lt;profileTransAuthCapture&amp;gt;&lt;BR /&gt;&amp;lt;amount&amp;gt;10.95&amp;lt;/amount&amp;gt;&lt;BR /&gt;&amp;lt;tax&amp;gt;&lt;BR /&gt;&amp;lt;amount&amp;gt;1.00&amp;lt;/amount&amp;gt;&lt;BR /&gt;&amp;lt;name&amp;gt;state sales tax&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;lt;description&amp;gt;descstate sales tax&amp;lt;/description&amp;gt;&lt;BR /&gt;&amp;lt;/tax&amp;gt;&amp;nbsp; and so on......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead it shows:&lt;BR /&gt;xxxx&amp;nbsp; xxxx 10.95 1.00 state sales tax descstate sales tax 1 widget 5 desc of widgt 5 2 5.00 2 widget 6 desccrition widget 6 1 8.00 12940902 11936459 12031425 INV000005 description of transaction PONUM000005 false false 000&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2013 14:15:10 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-error-E00002-The-content-type-specified-is-not-supported/m-p/33611#M18118</guid>
      <dc:creator>mallen</dc:creator>
      <dc:date>2013-03-21T14:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error E00002 The content-type specified is not supported</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-error-E00002-The-content-type-specified-is-not-supported/m-p/33612#M18119</link>
      <description>&lt;P&gt;Should do it the same way as you show in on your other post&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://community.developer.authorize.net/t5/Integration-and-Testing/Convert-from-AIM-to-CIM/m-p/33409/highlight/true#M17924"&gt;http://community.developer.authorize.net/t5/Integration-and-Testing/Convert-from-AIM-to-CIM/m-p/33409/highlight/true#M17924&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$content = .....&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Mar 2013 14:30:14 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-error-E00002-The-content-type-specified-is-not-supported/m-p/33612#M18119</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-03-21T14:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error E00002 The content-type specified is not supported</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-error-E00002-The-content-type-specified-is-not-supported/m-p/33613#M18120</link>
      <description>&lt;P&gt;Thanks. I have had so many version of this I wasn't sure. Ok this is what I have now. Seems it is sending the data to Authorize.Net. Sure its hard coded info for now but I will try to change that later.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I need to incorporate that response code to my site. I can get the error box to display that defualt hard coded error"&amp;nbsp; by leaviing the values of the status array empty. That getElement is using another class that allow you tosearchthe XML for things such as ID, code or whatever.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thing like echo $xml-&amp;gt;messages-&amp;gt;resultCode;&amp;nbsp; is just outputs at the top of the page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;	var $cards = array("visa", "mc", "amex", "disc", "jcb", "dc");
    var $status = array("" =&amp;gt; "CHARGED","" =&amp;gt; "PENDING");

	function AuthorizeNet () {
		parent::__construct();
		$this-&amp;gt;setup('login','password','testmode');
	}

	function actions () {
		add_action('mycart_process_order',array(&amp;amp;$this,'process'));
	}

	
		function process () {
		global $Mycart;
		
		$message = $this-&amp;gt;build();
		$Response = $this-&amp;gt;send($message);
		$status = $Response-&amp;gt;getElementContent('responseCode');
		
		if ($status == "" || $status == "") {
			$message = $Response-&amp;gt;getElementContent('messages');
			//$message = $Response-&amp;gt;getElementContent('text');
			$code = $Response-&amp;gt;getElementContent('code');
			
			//var_dump($Response-&amp;gt;getElementContent('messages'));
			if (empty($message)) {
				new MycartError(__("A configuration error occurred while processing this transaction. Please contact the site administrator.","Mycart"),'authnet_error',MYCART_TRXN_ERR);
				return;
			}
			new MycartError($message,'authnet_error',MYCART_TRXN_ERR,
				array('code'=&amp;gt;$code));
				return;
		}
		
		$transaction = $Response-&amp;gt;getElement('Transaction');
		$txnid = $transaction['CHILDREN']['Id']['CONTENT'];
		$txnstatus = $this-&amp;gt;status[$status];
		$Mycart-&amp;gt;Order-&amp;gt;transaction($txnid,$txnstatus);

	}
	
	
	

	function build () {
		$Order = $this-&amp;gt;Order;
	

 
$xml = new AuthnetXML(AUTHNET_LOGIN, AUTHNET_TRANSKEY, AuthnetXML::USE_DEVELOPMENT_SERVER);
    $xml-&amp;gt;createCustomerProfileTransactionRequest(array(
      'transaction' =&amp;gt; array(
            'profileTransAuthCapture' =&amp;gt; array(
                'amount' =&amp;gt; '10.95',
                'tax' =&amp;gt; array(
                    'amount' =&amp;gt; '1.00',
                    'name' =&amp;gt; 'state sales tax',
                    'description' =&amp;gt; 'state sales tax'
                ),
                'shipping' =&amp;gt; array(
                    'amount' =&amp;gt; '2.00',
                    'name' =&amp;gt; 'ground based shipping',
                    'description' =&amp;gt; 'Ground based 5 to 10 day shipping'
                ),
                'lineItems' =&amp;gt; array(
                    0 =&amp;gt; array(
                        'itemId' =&amp;gt; '1',
                        'name' =&amp;gt; 'widget 1',
                        'description' =&amp;gt; 'desc',
                        'quantity' =&amp;gt; '18',
                        'unitPrice' =&amp;gt; '45.00'
                    ),
                    1 =&amp;gt; array(
                        'itemId' =&amp;gt; '2',
                        'name' =&amp;gt; 'widget 2',
                        'description' =&amp;gt; 'desc',
                        'quantity' =&amp;gt; '10',
                        'unitPrice' =&amp;gt; '85.00'
                    )
                ),
                'customerProfileId' =&amp;gt; '129',
                'customerPaymentProfileId' =&amp;gt; '1193',
                'customerShippingAddressId' =&amp;gt; '120',
                'order' =&amp;gt; array(
                    'invoiceNumber' =&amp;gt; 'INV9',
                    'description' =&amp;gt; 'description of transaction',
                    'purchaseOrderNumber' =&amp;gt; 'PON9'
                ),
                'taxExempt' =&amp;gt; 'false',
                'recurringBilling' =&amp;gt; 'false',
                'cardCode' =&amp;gt; '000'
            )
        ),
        'extraOptions' =&amp;gt; '&amp;lt;![CDATA[x_customer_ip=100.0.0.1]]&amp;gt;'
		
    ));
echo $xml-&amp;gt;messages-&amp;gt;resultCode;

echo 	$xml-&amp;gt;messages-&amp;gt;message-&amp;gt;code;



//echo "Raw request: " . htmlspecialchars($xml) . "&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;";
//$response = send_xml_request($xml);
//echo "Raw response: " . htmlspecialchars($response) . "&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;";
//$parsedresponse = parse_api_response($response);
if ("Ok" == $parsedresponse-&amp;gt;messages-&amp;gt;resultCode) {
	echo "customerProfileId &amp;lt;b&amp;gt;"
		. htmlspecialchars($parsedresponse-&amp;gt;customerProfileId)
		. "&amp;lt;/b&amp;gt; was successfully created.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;";
}

//echo "&amp;lt;br&amp;gt;&amp;lt;a href=index.php?customerProfileId="
	//. urlencode($parsedresponse-&amp;gt;customerProfileId)
	//. "&amp;gt;Continue&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;";
 }	

	
	
	
function send ($message) {
		$url = '&lt;A target="_blank" href="https://apitest.authorize.net/xml/v1/request.api'"&gt;https://apitest.authorize.net/xml/v1/request.api'&lt;/A&gt; ;
		$response = parent::send($message,$url);
		return new XMLdata($response);
	}

function response ($buffer) { //added to test error
		$_ = new stdClass();

		list($_-&amp;gt;code,
			 $_-&amp;gt;subcode,
			 $_-&amp;gt;reasoncode,
			 $_-&amp;gt;reason,
			 $_-&amp;gt;authcode,
			 $_-&amp;gt;avs,
			 $_-&amp;gt;transactionid,
			 $_-&amp;gt;invoicenum,
			 $_-&amp;gt;description,
			 $_-&amp;gt;amount,
			 $_-&amp;gt;method,
			 $_-&amp;gt;type,
			 $_-&amp;gt;customerid,
			 $_-&amp;gt;firstname,
			 $_-&amp;gt;lastname,
			 $_-&amp;gt;company,
			 $_-&amp;gt;address,
			 $_-&amp;gt;city,
			 $_-&amp;gt;state,
			 $_-&amp;gt;zip,
			 $_-&amp;gt;country,
			 $_-&amp;gt;phone,
			 $_-&amp;gt;fax,
			 $_-&amp;gt;email,
			 $_-&amp;gt;ship_to_first_name,
			 $_-&amp;gt;ship_to_last_name,
			 $_-&amp;gt;ship_to_company,
			 $_-&amp;gt;ship_to_address,
			 $_-&amp;gt;ship_to_city,
			 $_-&amp;gt;ship_to_state,
			 $_-&amp;gt;ship_to_zip,
			 $_-&amp;gt;ship_to_country,
			 $_-&amp;gt;tax,
			 $_-&amp;gt;duty,
			 $_-&amp;gt;freight,
			 $_-&amp;gt;taxexempt,
			 $_-&amp;gt;ponum,
			 $_-&amp;gt;md5hash,
			 $_-&amp;gt;cvv2code,
			 $_-&amp;gt;cvv2response) = explode(",",$buffer);
		return $_;
	}	

	function settings () {
		$this-&amp;gt;ui-&amp;gt;cardmenu(0,array(
			'name' =&amp;gt; 'cards',
			'selected' =&amp;gt; $this-&amp;gt;settings['cards']
		),$this-&amp;gt;cards);

		$this-&amp;gt;ui-&amp;gt;text(1,array(
			'name' =&amp;gt; 'login',
			'value' =&amp;gt; $this-&amp;gt;settings['login'],
			'size' =&amp;gt; '16',
			'label' =&amp;gt; __('Enter your AuthorizeNet Login ID.','Mycart')
		));

		$this-&amp;gt;ui-&amp;gt;password(1,array(
			'name' =&amp;gt; 'password',
			'value' =&amp;gt; $this-&amp;gt;settings['password'],
			'size' =&amp;gt; '24',
			'label' =&amp;gt; __('Enter your AuthorizeNet Password or Transaction Key.','Mycart')
		));

		$this-&amp;gt;ui-&amp;gt;checkbox(1,array(
			'name' =&amp;gt; 'testmode',
			'checked' =&amp;gt; $this-&amp;gt;settings['testmode'],
			'label' =&amp;gt; __('Enable test mode','Mycart')
		));

	}

} // END class AuthorizeNet&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2013 16:07:09 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-error-E00002-The-content-type-specified-is-not-supported/m-p/33613#M18120</guid>
      <dc:creator>mallen</dc:creator>
      <dc:date>2013-03-21T16:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error E00002 The content-type specified is not supported</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-error-E00002-The-content-type-specified-is-not-supported/m-p/33624#M18131</link>
      <description>&lt;P&gt;This is part of the response XML. I need to get the code back with the getElement.&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;createCustomerProfileTransactionResponse&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;directResponse&amp;gt;1,1,1,This transaction has been approved.,MY6ACN,Y,2186330627,INV10,description of transaction,10.95,CC,auth_capture,2,Joe,Smith,,128 Place,New York,NY,33874,,65447488,,joes@somedomain.com,Joe,Smith,,128 Place,New York,NY,33874,,65447488,,1.00,,2.00,FALSE,PON10,BE55E61FD13711C10,P,2,,,,,,,,,,,XXXX0015,MasterCard,,,,,,,,,,,,,,,,,12031425,100.0.0.1]]&amp;amp;gt;&amp;lt;/directResponse&amp;gt;
&amp;lt;/createCustomerProfileTransactionResponse&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2013 12:22:20 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-error-E00002-The-content-type-specified-is-not-supported/m-p/33624#M18131</guid>
      <dc:creator>mallen</dc:creator>
      <dc:date>2013-03-22T12:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error E00002 The content-type specified is not supported</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-error-E00002-The-content-type-specified-is-not-supported/m-p/33640#M18147</link>
      <description>&lt;P&gt;The status must not be getting a value. Yet it will show error&amp;nbsp; "E00002" which means&amp;nbsp; "The only supported content-types are text/xml and application/xml"&amp;nbsp; But the XML sends the data successfully. I hope someone can help me with this I have been struggling a couple weeks.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2013 19:08:31 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-error-E00002-The-content-type-specified-is-not-supported/m-p/33640#M18147</guid>
      <dc:creator>mallen</dc:creator>
      <dc:date>2013-03-22T19:08:31Z</dc:date>
    </item>
  </channel>
</rss>

