<?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 Could not run sample code..... in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Could-not-run-sample-code/m-p/54637#M29604</link>
    <description>&lt;P&gt;I downloaded the SDK nad the sample code and placed them in a directory in my Apache root. In&lt;/P&gt;&lt;P&gt;conformance with the directive at the bottom of the git-hub page (&lt;A href="https://github.com/AuthorizeNet/sample-code-php)," target="_blank"&gt;https://github.com/AuthorizeNet/sample-code-php),&lt;/A&gt; I copied the autoload.php file from the sdk-php-1.8.8/ directory into the sample-code-php-master/ directory (and into the Payment Transactions directory). I then ran the command "php PaymentTransactions/charge-credit-card.php" and got the following error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PHP Warning: require(/var/www/authorize/sample-code-php-master/classmap.php): failed to open stream: No such file or directory in /var/www/authorize/sample-code-php-master/autoload.php on line 12&lt;BR /&gt;PHP Fatal error: require(): Failed opening required '/var/www/authorize/sample-code-php-master/classmap.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/authorize/sample-code-php-master/autoload.php on line 12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, line 12 is NOT the 'require' line. Rather, it is:&lt;/P&gt;&lt;P&gt;I downloaded the SDK nad the sample code and placed them in a directory in my Apache root. In&lt;/P&gt;&lt;P&gt;conformance with the directive at the bottom of the git-hub page (&lt;A href="https://github.com/AuthorizeNet/sample-code-php)," target="_blank"&gt;https://github.com/AuthorizeNet/sample-code-php),&lt;/A&gt; I copied the autoload.php file from the sdk-php-1.8.8/ directory into the sample-code-php-master/ directory (and into the Payment Transactions directory). I then ran the command "php PaymentTransactions/charge-credit-card.php" and got the following error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PHP Warning: require(/var/www/authorize/sample-code-php-master/classmap.php): failed to open stream: No such file or directory in /var/www/authorize/sample-code-php-master/autoload.php on line 12&lt;BR /&gt;PHP Fatal error: require(): Failed opening required '/var/www/authorize/sample-code-php-master/classmap.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/authorize/sample-code-php-master/autoload.php on line 12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, line 12 is NOT the 'require' line. Rather, it is:&lt;/P&gt;&lt;P&gt;I downloaded the SDK nad the sample code and placed them in a directory in my Apache root. In&lt;/P&gt;&lt;P&gt;conformance with the directive at the bottom of the git-hub page (&lt;A href="https://github.com/AuthorizeNet/sample-code-php)," target="_blank"&gt;https://github.com/AuthorizeNet/sample-code-php),&lt;/A&gt; I copied the autoload.php file from the sdk-php-1.8.8/ directory into the sample-code-php-master/ directory (and into the Payment Transactions directory). I then ran the command "php PaymentTransactions/charge-credit-card.php" and got the following error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PHP Warning: require(/var/www/authorize/sample-code-php-master/classmap.php): failed to open stream: No such file or directory in /var/www/authorize/sample-code-php-master/autoload.php on line 12&lt;BR /&gt;PHP Fatal error: require(): Failed opening required '/var/www/authorize/sample-code-php-master/classmap.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/authorize/sample-code-php-master/autoload.php on line 12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, line 12 is NOT the 'require' line. Rather, it is:&lt;/P&gt;&lt;P&gt;I downloaded the SDK nad the sample code and placed them in a directory in my Apache root. In&lt;/P&gt;&lt;P&gt;conformance with the directive at the bottom of the git-hub page (&lt;A href="https://github.com/AuthorizeNet/sample-code-php)," target="_blank"&gt;https://github.com/AuthorizeNet/sample-code-php),&lt;/A&gt; I copied the autoload.php file from the sdk-php-1.8.8/ directory into the sample-code-php-master/ directory (and into the Payment Transactions directory). I then ran the command "php PaymentTransactions/charge-credit-card.php" and got the following error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PHP Warning: require(/var/www/authorize/sample-code-php-master/classmap.php): failed to open stream: No such file or directory in /var/www/authorize/sample-code-php-master/autoload.php on line 12&lt;BR /&gt;PHP Fatal error: require(): Failed opening required '/var/www/authorize/sample-code-php-master/classmap.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/authorize/sample-code-php-master/autoload.php on line 12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, line 12 is NOT the 'require' line. Rather, it is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$merchantAuthentication-&amp;gt;setTransactionKey(\SampleCode\Constants::MERCHANT_TRANSACTION_KEY);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I supposed to replace MERCHANT_TRANSACTION_KEY with a value? If so, where to I locate such a KEY? And where are the instructions that explain this procedure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 May 2016 14:53:12 GMT</pubDate>
    <dc:creator>Titus</dc:creator>
    <dc:date>2016-05-17T14:53:12Z</dc:date>
    <item>
      <title>Could not run sample code.....</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Could-not-run-sample-code/m-p/54637#M29604</link>
      <description>&lt;P&gt;I downloaded the SDK nad the sample code and placed them in a directory in my Apache root. In&lt;/P&gt;&lt;P&gt;conformance with the directive at the bottom of the git-hub page (&lt;A href="https://github.com/AuthorizeNet/sample-code-php)," target="_blank"&gt;https://github.com/AuthorizeNet/sample-code-php),&lt;/A&gt; I copied the autoload.php file from the sdk-php-1.8.8/ directory into the sample-code-php-master/ directory (and into the Payment Transactions directory). I then ran the command "php PaymentTransactions/charge-credit-card.php" and got the following error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PHP Warning: require(/var/www/authorize/sample-code-php-master/classmap.php): failed to open stream: No such file or directory in /var/www/authorize/sample-code-php-master/autoload.php on line 12&lt;BR /&gt;PHP Fatal error: require(): Failed opening required '/var/www/authorize/sample-code-php-master/classmap.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/authorize/sample-code-php-master/autoload.php on line 12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, line 12 is NOT the 'require' line. Rather, it is:&lt;/P&gt;&lt;P&gt;I downloaded the SDK nad the sample code and placed them in a directory in my Apache root. In&lt;/P&gt;&lt;P&gt;conformance with the directive at the bottom of the git-hub page (&lt;A href="https://github.com/AuthorizeNet/sample-code-php)," target="_blank"&gt;https://github.com/AuthorizeNet/sample-code-php),&lt;/A&gt; I copied the autoload.php file from the sdk-php-1.8.8/ directory into the sample-code-php-master/ directory (and into the Payment Transactions directory). I then ran the command "php PaymentTransactions/charge-credit-card.php" and got the following error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PHP Warning: require(/var/www/authorize/sample-code-php-master/classmap.php): failed to open stream: No such file or directory in /var/www/authorize/sample-code-php-master/autoload.php on line 12&lt;BR /&gt;PHP Fatal error: require(): Failed opening required '/var/www/authorize/sample-code-php-master/classmap.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/authorize/sample-code-php-master/autoload.php on line 12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, line 12 is NOT the 'require' line. Rather, it is:&lt;/P&gt;&lt;P&gt;I downloaded the SDK nad the sample code and placed them in a directory in my Apache root. In&lt;/P&gt;&lt;P&gt;conformance with the directive at the bottom of the git-hub page (&lt;A href="https://github.com/AuthorizeNet/sample-code-php)," target="_blank"&gt;https://github.com/AuthorizeNet/sample-code-php),&lt;/A&gt; I copied the autoload.php file from the sdk-php-1.8.8/ directory into the sample-code-php-master/ directory (and into the Payment Transactions directory). I then ran the command "php PaymentTransactions/charge-credit-card.php" and got the following error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PHP Warning: require(/var/www/authorize/sample-code-php-master/classmap.php): failed to open stream: No such file or directory in /var/www/authorize/sample-code-php-master/autoload.php on line 12&lt;BR /&gt;PHP Fatal error: require(): Failed opening required '/var/www/authorize/sample-code-php-master/classmap.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/authorize/sample-code-php-master/autoload.php on line 12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, line 12 is NOT the 'require' line. Rather, it is:&lt;/P&gt;&lt;P&gt;I downloaded the SDK nad the sample code and placed them in a directory in my Apache root. In&lt;/P&gt;&lt;P&gt;conformance with the directive at the bottom of the git-hub page (&lt;A href="https://github.com/AuthorizeNet/sample-code-php)," target="_blank"&gt;https://github.com/AuthorizeNet/sample-code-php),&lt;/A&gt; I copied the autoload.php file from the sdk-php-1.8.8/ directory into the sample-code-php-master/ directory (and into the Payment Transactions directory). I then ran the command "php PaymentTransactions/charge-credit-card.php" and got the following error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PHP Warning: require(/var/www/authorize/sample-code-php-master/classmap.php): failed to open stream: No such file or directory in /var/www/authorize/sample-code-php-master/autoload.php on line 12&lt;BR /&gt;PHP Fatal error: require(): Failed opening required '/var/www/authorize/sample-code-php-master/classmap.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/authorize/sample-code-php-master/autoload.php on line 12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, line 12 is NOT the 'require' line. Rather, it is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$merchantAuthentication-&amp;gt;setTransactionKey(\SampleCode\Constants::MERCHANT_TRANSACTION_KEY);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I supposed to replace MERCHANT_TRANSACTION_KEY with a value? If so, where to I locate such a KEY? And where are the instructions that explain this procedure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2016 14:53:12 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Could-not-run-sample-code/m-p/54637#M29604</guid>
      <dc:creator>Titus</dc:creator>
      <dc:date>2016-05-17T14:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Could not run sample code.....</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Could-not-run-sample-code/m-p/54638#M29605</link>
      <description>&lt;P&gt;here to get started&lt;/P&gt;&lt;P&gt;&lt;A href="http://developer.authorize.net/hello_world/" target="_blank"&gt;http://developer.authorize.net/hello_world/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2016 15:18:07 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Could-not-run-sample-code/m-p/54638#M29605</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2016-05-17T15:18:07Z</dc:date>
    </item>
  </channel>
</rss>

