<?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 Card Present: Undefined Property $_custom_fields PHP in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Card-Present-Undefined-Property-custom-fields-PHP/m-p/32564#M17116</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I am getting this issue when I am attempting to get a response from the transaction using the card present method:&lt;BR /&gt;&lt;STRONG&gt;Undefined property: AuthorizeNetCP::$_custom_fields in /vendor/ajbdev/authorizenet-php-api/lib/AuthorizeNetCP.php line 86&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;I am sending:&lt;BR /&gt;$track='%B4111111111111111^DOE/JOHN^1803101000000000020000831000000?';&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $transaction-&amp;gt;amount = $amount;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $transaction-&amp;gt;device_type = '8';&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $transaction-&amp;gt;setTrack1Data($track);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $transaction-&amp;gt;setCustomField('order_id', $order_id);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $response = $transaction-&amp;gt;authorizeAndCapture();&lt;BR /&gt;&lt;BR /&gt;The transaction goes through fine, but fails at the response part of it.&lt;BR /&gt;&lt;BR /&gt;I have looked everywhere and it honestly doesn't look like the $this-&amp;gt;custom_fields variable is defined in the AuthorizeNetAIM class or the AuthorizeNetCP class.&amp;nbsp; The only way I am able to resolve this issue is by setting it manually in the class.&amp;nbsp; I have tried adding custom fields to the transaction and it's still throwing the same error.&amp;nbsp; Searching for this error on google returns no results. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The line in question (line 86) is the return of this method:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;protected function _handleResponse($response)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return new AuthorizeNetCP_Response($response, $this-&amp;gt;_x_post_fields['delim_char'], $this-&amp;gt;_x_post_fields['encap_char'], $this-&amp;gt;_custom_fields);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 18 Jan 2013 00:08:16 GMT</pubDate>
    <dc:creator>vlutton</dc:creator>
    <dc:date>2013-01-18T00:08:16Z</dc:date>
    <item>
      <title>Card Present: Undefined Property $_custom_fields PHP</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Card-Present-Undefined-Property-custom-fields-PHP/m-p/32564#M17116</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I am getting this issue when I am attempting to get a response from the transaction using the card present method:&lt;BR /&gt;&lt;STRONG&gt;Undefined property: AuthorizeNetCP::$_custom_fields in /vendor/ajbdev/authorizenet-php-api/lib/AuthorizeNetCP.php line 86&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;I am sending:&lt;BR /&gt;$track='%B4111111111111111^DOE/JOHN^1803101000000000020000831000000?';&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $transaction-&amp;gt;amount = $amount;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $transaction-&amp;gt;device_type = '8';&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $transaction-&amp;gt;setTrack1Data($track);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $transaction-&amp;gt;setCustomField('order_id', $order_id);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $response = $transaction-&amp;gt;authorizeAndCapture();&lt;BR /&gt;&lt;BR /&gt;The transaction goes through fine, but fails at the response part of it.&lt;BR /&gt;&lt;BR /&gt;I have looked everywhere and it honestly doesn't look like the $this-&amp;gt;custom_fields variable is defined in the AuthorizeNetAIM class or the AuthorizeNetCP class.&amp;nbsp; The only way I am able to resolve this issue is by setting it manually in the class.&amp;nbsp; I have tried adding custom fields to the transaction and it's still throwing the same error.&amp;nbsp; Searching for this error on google returns no results. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The line in question (line 86) is the return of this method:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;protected function _handleResponse($response)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return new AuthorizeNetCP_Response($response, $this-&amp;gt;_x_post_fields['delim_char'], $this-&amp;gt;_x_post_fields['encap_char'], $this-&amp;gt;_custom_fields);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jan 2013 00:08:16 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Card-Present-Undefined-Property-custom-fields-PHP/m-p/32564#M17116</guid>
      <dc:creator>vlutton</dc:creator>
      <dc:date>2013-01-18T00:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Card Present: Undefined Property $_custom_fields PHP</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Card-Present-Undefined-Property-custom-fields-PHP/m-p/32566#M17118</link>
      <description>&lt;P&gt;Is in theAuthorizeNetAIM&lt;/P&gt;&lt;PRE&gt;/**
     * Only used if merchant wants to send custom fields.
     */
    private $_custom_fields = array();&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;so it only error if you set a custom field? could use echo the $response ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jan 2013 00:35:59 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Card-Present-Undefined-Property-custom-fields-PHP/m-p/32566#M17118</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-01-18T00:35:59Z</dc:date>
    </item>
  </channel>
</rss>

