<?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: Using PHP SDK Credit response has invalid format. in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-PHP-SDK-Credit-response-has-invalid-format/m-p/33481#M17991</link>
    <description>&lt;P&gt;Thanks! &amp;nbsp;Simply changing my code from&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$auth = new AuthorizeNetAIM(LOGIN, KEY);&lt;/PRE&gt;&lt;P&gt;to&lt;/P&gt;&lt;PRE&gt;$auth = new AuthorizeNetCP(LOGIN, KEY);&lt;/PRE&gt;&lt;P&gt;Fixed the issue.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Mar 2013 14:05:51 GMT</pubDate>
    <dc:creator>bones</dc:creator>
    <dc:date>2013-03-13T14:05:51Z</dc:date>
    <item>
      <title>Using PHP SDK Credit response has invalid format.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-PHP-SDK-Credit-response-has-invalid-format/m-p/33460#M17970</link>
      <description>&lt;P&gt;Hello, I am using the php SDK to run credits to a CP account.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$auth = new AuthorizeNetAIM(LOGIN, KEY);&lt;BR /&gt; $auth-&amp;gt;setFields(&lt;BR /&gt; array(&lt;BR /&gt; 'amount' =&amp;gt; 12.12,&lt;BR /&gt; 'card_num' =&amp;gt; 1234&lt;BR /&gt; )&lt;BR /&gt; );&lt;BR /&gt; $auth-&amp;gt;setCustomField('x_ref_trans_id', 123456789);&lt;BR /&gt; $auth-&amp;gt;setCustomField('x_market_type', 2);&lt;BR /&gt; $auth-&amp;gt;setCustomField('x_device_type', 5);&lt;BR /&gt; $auth-&amp;gt;setCustomField('x_response_format', 1);&lt;BR /&gt; $auth-&amp;gt;setCustomField('x_invoice_num', 545454);&lt;BR /&gt; &lt;BR /&gt; $response = $auth-&amp;gt;credit();&lt;/PRE&gt;&lt;P&gt;My response looks like this:&lt;/P&gt;&lt;PRE&gt;|1.0|,|1|,|1|,|This transaction has been approved.|,||,|P|,||,|TRANSID|,|D9B0C5C38B9BED87E03AED3124A5F018|,||,||,||,||,||,||,||,||,||,||,||,|XXXX1234|,|MasterCard|&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$response:&lt;/P&gt;&lt;PRE&gt;AuthorizeNetAIM_Response Object
(
    [_response_array:AuthorizeNetAIM_Response:private] =&amp;gt; Array
        (
            [0] =&amp;gt; 1.0
            [1] =&amp;gt; 1
            [2] =&amp;gt; 1
            [3] =&amp;gt; This transaction has been approved.
            [4] =&amp;gt; 
            [5] =&amp;gt; P
            [6] =&amp;gt; 
            [7] =&amp;gt; TRANSID
            [8] =&amp;gt; D9B0C5C38B9BED87E03AED3124A5F018
            [9] =&amp;gt; 
            [10] =&amp;gt; 
            [11] =&amp;gt; 
            [12] =&amp;gt; 
            [13] =&amp;gt; 
            [14] =&amp;gt; 
            [15] =&amp;gt; 
            [16] =&amp;gt; 
            [17] =&amp;gt; 
            [18] =&amp;gt; 
            [19] =&amp;gt; 
            [20] =&amp;gt; XXXX1234
            [21] =&amp;gt; MasterCard
        )

    [approved] =&amp;gt; 1
    [declined] =&amp;gt; 
    [error] =&amp;gt; 
    [held] =&amp;gt; 
    [response_code] =&amp;gt; 1.0
    [response_subcode] =&amp;gt; 1
    [response_reason_code] =&amp;gt; 1
    [response_reason_text] =&amp;gt; This transaction has been approved.
    [authorization_code] =&amp;gt; 
    [avs_response] =&amp;gt; P
    [transaction_id] =&amp;gt; 
    [invoice_number] =&amp;gt; TRANSID
    [description] =&amp;gt; D9B0C5C38B9BED87E03AED3124A5F018
    [amount] =&amp;gt; 
    [method] =&amp;gt; 
    [transaction_type] =&amp;gt; 
    [customer_id] =&amp;gt; 
    [first_name] =&amp;gt; 
    [last_name] =&amp;gt; 
    [company] =&amp;gt; 
    [address] =&amp;gt; 
    [city] =&amp;gt; 
    [state] =&amp;gt; 
    [zip_code] =&amp;gt; 
    [country] =&amp;gt; XXXX1234
    [phone] =&amp;gt; MasterCard
    [fax] =&amp;gt; 
    [email_address] =&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_code] =&amp;gt; 
    [ship_to_country] =&amp;gt; 
    [tax] =&amp;gt; 
    [duty] =&amp;gt; 
    [freight] =&amp;gt; 
    [tax_exempt] =&amp;gt; 
    [purchase_order_number] =&amp;gt; 
    [md5_hash] =&amp;gt; 
    [card_code_response] =&amp;gt; 
    [cavv_response] =&amp;gt; 
    [account_number] =&amp;gt; 
    [card_type] =&amp;gt; 
    [split_tender_id] =&amp;gt; 
    [requested_amount] =&amp;gt; 
    [balance_on_card] =&amp;gt; 
    [response] =&amp;gt; |1.0|,|1|,|1|,|This transaction has been approved.|,||,|P|,||,|TRANSID|,|D9B0C5C38B9BED87E03AED3124A5F018|,||,||,||,||,||,||,||,||,||,||,||,|XXXX1234|,|MasterCard|
    [x_ref_trans_id] =&amp;gt; 
    [x_market_type] =&amp;gt; 
    [x_device_type] =&amp;gt; 
    [x_response_format] =&amp;gt; XXXX1234
    [x_invoice_num] =&amp;gt; MasterCard
)&lt;/PRE&gt;&lt;P&gt;The transaction id is being passed back in the invoice id field and I'm not sure what the description field is. Also it appears the country and phone contain the card number and type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2013 21:42:16 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-PHP-SDK-Credit-response-has-invalid-format/m-p/33460#M17970</guid>
      <dc:creator>bones</dc:creator>
      <dc:date>2013-03-12T21:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using PHP SDK Credit response has invalid format.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-PHP-SDK-Credit-response-has-invalid-format/m-p/33469#M17979</link>
      <description>&lt;P&gt;There is already a&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2013 23:13:49 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-PHP-SDK-Credit-response-has-invalid-format/m-p/33469#M17979</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-03-12T23:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using PHP SDK Credit response has invalid format.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-PHP-SDK-Credit-response-has-invalid-format/m-p/33470#M17980</link>
      <description>&lt;P&gt;Use the CP version as shown&lt;/P&gt;&lt;P&gt;anet_php_sdk-1.1.8.zip\anet_php_sdk\tests\AuthorizeNetCP_Test.php&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the CP response have the version# on index 0 which push everything else down.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2013 23:15:24 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-PHP-SDK-Credit-response-has-invalid-format/m-p/33470#M17980</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-03-12T23:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using PHP SDK Credit response has invalid format.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-PHP-SDK-Credit-response-has-invalid-format/m-p/33481#M17991</link>
      <description>&lt;P&gt;Thanks! &amp;nbsp;Simply changing my code from&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$auth = new AuthorizeNetAIM(LOGIN, KEY);&lt;/PRE&gt;&lt;P&gt;to&lt;/P&gt;&lt;PRE&gt;$auth = new AuthorizeNetCP(LOGIN, KEY);&lt;/PRE&gt;&lt;P&gt;Fixed the issue.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2013 14:05:51 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-PHP-SDK-Credit-response-has-invalid-format/m-p/33481#M17991</guid>
      <dc:creator>bones</dc:creator>
      <dc:date>2013-03-13T14:05:51Z</dc:date>
    </item>
  </channel>
</rss>

