<?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: Composer issue installing PHP SDK in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Composer-issue-installing-PHP-SDK/m-p/63416#M37545</link>
    <description>&lt;P&gt;Sure thing... In my case. Perhaps in general.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/AuthorizeNet/sdk-php" target="_self"&gt;https://github.com/AuthorizeNet/sdk-php&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Installation Composer&lt;/P&gt;&lt;P&gt;We recommend using&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://getcomposer.org/" target="_blank" rel="nofollow"&gt;Composer&lt;/A&gt;.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;(Note: we never recommend you override the new secure-http default setting)&lt;/EM&gt;.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;Update your composer.json file as per the example below and then run&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;composer update.&lt;/EM&gt;&lt;/P&gt;&lt;DIV class="highlight highlight-source-json"&gt;&lt;PRE&gt;{
  &lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;require&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;: {
  &lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;php&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;: &lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&amp;gt;=5.6&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;,
  &lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;authorizenet/authorizenet&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;: &lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;~1.9.7&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
  }
}&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the provided file&amp;nbsp;&lt;A href="https://github.com/AuthorizeNet/sdk-php/blob/master/composer.json" target="_self"&gt;https://github.com/AuthorizeNet/sdk-php/blob/master/composer.json&lt;/A&gt;&amp;nbsp;is modified and not the same as the instructions and not the same as &lt;A href="https://developer.authorize.net/hello_world/" target="_self"&gt;https://developer.authorize.net/hello_world/&lt;/A&gt;&amp;nbsp;Step 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will also note the Hellow World - Step 1 is out of date for the SDK...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Composer with this file content resolved for me:&lt;/P&gt;&lt;PRE&gt;{
  &lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;require&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;: {
  &lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;php&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;: &lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&amp;gt;=5.6&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;,
  &lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;authorizenet/authorizenet&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;: &lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;~1.9.7&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
  }
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There seems to be an issue as well with clear guidance for use and getting started.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For instance. After getting the SDK working, where and how to place (folder hyerarchy) for&amp;nbsp;adding&amp;nbsp;&lt;A href="https://github.com/AuthorizeNet/accept-sample-app" target="_self"&gt;https://github.com/AuthorizeNet/accept-sample-app&lt;/A&gt;&amp;nbsp;in for testing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And one more, the &lt;A href="https://github.com/AuthorizeNet/accept-sample-app" target="_self"&gt;https://github.com/AuthorizeNet/accept-sample-app&lt;/A&gt;&amp;nbsp;despite havinging followed this to a T and having all requirements met... It still will not allow access with the Customer ID (and yes it is entered on my Sandbox.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to Use the Sample App&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Clone or download this repository.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Host the sample app in any web server supporting PHP, for example IIS or XAMPP (Apache).&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;HTTPS (SSL) must be enabled for your website.&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Set the authentication credentials in the application so that it uses your Authorize.Net sandbox (test) account. If you haven't yet signed up for a sandbox account, you can create a sandbox account at our [Developer Center] (&lt;A href="https://developer.authorize.net/hello_world/sandbox/" target="_blank" rel="nofollow"&gt;https://developer.authorize.net/hello_world/sandbox/&lt;/A&gt;). Set environment variables for&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;API_LOGIN_ID&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;TRANSACTION_KEY&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;using the credentials for your Authorize.Net sandbox account. For example, in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;httpd.conf&lt;/EM&gt;, you would add the following lines:&lt;/P&gt;&lt;PRE&gt;  SetEnv API_LOGIN_ID your_id
  SetEnv TRANSACTION_KEY your_key  &lt;/PRE&gt;&lt;P&gt;For IIS, you could set these environment variables in FastCGI Settings -&amp;gt; Environment Variables.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Set the authentication credentials that Accept.js uses. Edit the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;acceptJSCaller()&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;function in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;acceptJSCaller.js&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to use your API login ID and public client key for the values of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;authData.apiLoginID&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;authData.clientKey. A public client key can be created by logging into the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://sandbox.authorize.net/" target="_blank" rel="nofollow"&gt;Merchant Interface&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and navigating to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Account --&amp;gt; Security Settings --&amp;gt; Manage Public Client Key&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Browse the application (&lt;EM&gt;index.php&lt;/EM&gt;) over HTTPS connection.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;To "log in", use a customer profile ID that already exists within your account or create a new one by using the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://developer.authorize.net/api/reference/index.html#customer-profiles-create-customer-profile" target="_blank" rel="nofollow"&gt;Create a Customer Profile API&lt;/A&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;In these examples, payment forms are shown in the same page and Shipping forms are handled in a separate modal popup. However, any of the types of display can be chosen to display any type of form.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;While I see why all are broken up into their own repository. I think there is an oportunity to keep continuity and guidance for using / testing all. You may also note the empty README files... why include them if you have no content. The reference page &lt;A href="https://developer.authorize.net/api/reference/features/acceptjs.html" target="_self"&gt;https://developer.authorize.net/api/reference/features/acceptjs.html&lt;/A&gt;&amp;nbsp;with "complete" html examples is also somwhat decieving as it does not clearly advise to what page you should post the form. Self? Also does not appear to work as when attempted no response appears to display or did I miss something in the instructions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps I am just a bit frustrated for an out of the box experience I am use to with other platforms and examples. Finding no 3rd party reference either, and somewhat dated and lacking reference and few replies to forum posts here (excluding present thread).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just know I'm out 2 weeks working on my project and I just need to be done and&amp;nbsp;on par with learning how to use the SDK properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jun 2018 22:13:43 GMT</pubDate>
    <dc:creator>HoosierWebs</dc:creator>
    <dc:date>2018-06-15T22:13:43Z</dc:date>
    <item>
      <title>Composer issue installing PHP SDK</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Composer-issue-installing-PHP-SDK/m-p/63327#M37483</link>
      <description>&lt;P&gt;Using the JSON&amp;nbsp;file:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;/authorize/composer.json&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By using the provided code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;{&lt;BR /&gt;
  "require": {&lt;BR /&gt;
  "php": "&amp;gt;=5.6",&lt;BR /&gt;
  "ext-curl": "*",&lt;BR /&gt;
  "phpunit/phpunit": "~4.8||~6.0",&lt;BR /&gt;
  "authorizenet/authorizenet": "&amp;gt;=1.9.6 || &amp;lt;2.0"&lt;BR /&gt;
  },&lt;BR /&gt;
  "autoload": {&lt;BR /&gt;
    "classmap": ["constants"]&lt;BR /&gt;
  }&lt;BR /&gt;
}&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and by running the command&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;composer update&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I received the follwoing output:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;Loading composer repositories with package information&lt;BR /&gt;
Updating dependencies (including require-dev)&lt;BR /&gt;
Package operations: 31 installs, 0 updates, 0 removals&lt;BR /&gt;
  - Installing symfony/polyfill-ctype (v1.8.0): Downloading (100%)         &lt;BR /&gt;
  - Installing symfony/yaml (v3.4.11): Downloading (100%)         &lt;BR /&gt;
  - Installing sebastian/version (1.0.6): Downloading (100%)         &lt;BR /&gt;
  - Installing sebastian/global-state (1.1.1): Downloading (100%)         &lt;BR /&gt;
  - Installing sebastian/recursion-context (1.0.5): Downloading (100%)         &lt;BR /&gt;
  - Installing sebastian/exporter (1.2.2): Downloading (100%)         &lt;BR /&gt;
  - Installing sebastian/environment (1.3.8): Downloading (100%)         &lt;BR /&gt;
  - Installing sebastian/diff (1.4.3): Downloading (100%)         &lt;BR /&gt;
  - Installing sebastian/comparator (1.2.4): Downloading (100%)         &lt;BR /&gt;
  - Installing doctrine/instantiator (1.0.5): Downloading (100%)         &lt;BR /&gt;
  - Installing phpunit/php-text-template (1.2.1): Downloading (100%)         &lt;BR /&gt;
  - Installing phpunit/phpunit-mock-objects (2.3.8): Downloading (100%)         &lt;BR /&gt;
  - Installing phpunit/php-timer (1.0.9): Downloading (100%)         &lt;BR /&gt;
  - Installing phpunit/php-file-iterator (1.4.5): Downloading (100%)         &lt;BR /&gt;
  - Installing phpunit/php-token-stream (1.4.12): Downloading (100%)         &lt;BR /&gt;
  - Installing phpunit/php-code-coverage (2.2.4): Downloading (100%)         &lt;BR /&gt;
  - Installing webmozart/assert (1.3.0): Downloading (100%)         &lt;BR /&gt;
  - Installing phpdocumentor/reflection-common (1.0.1): Downloading (100%)         &lt;BR /&gt;
  - Installing phpdocumentor/type-resolver (0.4.0): Downloading (100%)         &lt;BR /&gt;
  - Installing phpdocumentor/reflection-docblock (3.3.2): Downloading (100%)         &lt;BR /&gt;
  - Installing phpspec/prophecy (1.7.6): Downloading (100%)         &lt;BR /&gt;
  - Installing phpunit/phpunit (4.8.36): Downloading (100%)         &lt;BR /&gt;
  - Installing doctrine/lexer (v1.0.1): Downloading (100%)         &lt;BR /&gt;
  - Installing doctrine/annotations (v1.4.0): Downloading (100%)         &lt;BR /&gt;
  - Installing phpoption/phpoption (1.5.0): Downloading (100%)         &lt;BR /&gt;
  - Installing phpcollection/phpcollection (0.5.0): Downloading (100%)         &lt;BR /&gt;
  - Installing jms/parser-lib (1.0.0): Downloading (100%)         &lt;BR /&gt;
  - Installing jms/metadata (1.6.0): Downloading (100%)         &lt;BR /&gt;
  - Installing jms/serializer (1.12.1): Downloading (100%)         &lt;BR /&gt;
  - Installing goetas-webservices/xsd2php-runtime (v0.2.8): Downloading (100%)         &lt;BR /&gt;
  - Installing authorizenet/authorizenet (1.9.6): Downloading (100%)         &lt;BR /&gt;
symfony/yaml suggests installing symfony/console (For validating YAML files using the lint command)&lt;BR /&gt;
sebastian/global-state suggests installing ext-uopz (*)&lt;BR /&gt;
phpunit/php-code-coverage suggests installing ext-xdebug (&amp;gt;=2.2.1)&lt;BR /&gt;
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)&lt;BR /&gt;
jms/serializer suggests installing doctrine/collections (Required if you like to use doctrine collection types as ArrayCollection.)&lt;BR /&gt;
jms/serializer suggests installing doctrine/cache (Required if you like to use cache functionality.)&lt;BR /&gt;
Writing lock file&lt;BR /&gt;
Generating autoload files&lt;BR /&gt;
&lt;BR /&gt;
                                                                                                 &lt;BR /&gt;
  [RuntimeException]                                                                             &lt;BR /&gt;
  Could not scan for classes inside "constants" which does not appear to be a file nor a folder  &lt;BR /&gt;
                                                                                                 &lt;BR /&gt;
&lt;BR /&gt;
update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [--with-dependencies] [--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [&amp;lt;packages&amp;gt;]...&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What caused this error and how do I resolve this to move forward?&lt;/P&gt;&lt;PRE&gt;[RuntimeException]                                                                             &lt;BR /&gt;
  Could not scan for classes inside "constants" which does not appear to be a file nor a folder  &lt;BR /&gt;
                                                                  &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2018 02:53:32 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Composer-issue-installing-PHP-SDK/m-p/63327#M37483</guid>
      <dc:creator>HoosierWebs</dc:creator>
      <dc:date>2018-06-08T02:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Composer issue installing PHP SDK</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Composer-issue-installing-PHP-SDK/m-p/63331#M37484</link>
      <description>&lt;OL&gt;&lt;LI&gt;project directory:&lt;IMG border="0" alt="project.PNG" title="project.PNG" /&gt;&lt;/LI&gt;&lt;LI&gt;vendor directory&lt;IMG border="0" alt="vendor.PNG" title="vendor.PNG" /&gt;&lt;/LI&gt;&lt;LI&gt;authorize directory&lt;IMG border="0" alt="authorizenet.PNG" title="authorizenet.PNG" /&gt;&lt;P&gt;Following the steps here: &lt;A href="https://developer.authorize.net/hello_world/" target="_self"&gt;https://developer.authorize.net/hello_world/&amp;nbsp;Step 3, I loaded&amp;nbsp;&lt;SPAN&gt;charge-credit-card.php in the browser and get the following error;&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Warning: include(/public_html/authorize/vendor/authorizenet/authorizenet/vendor/jms/serializer/src/JMS/Serializer/Annotation/Type.php): failed to open stream: No such file or directory in&amp;nbsp;&lt;STRONG&gt;/public_html/authorize/vendor/authorizenet/authorizenet/autoload.php&amp;nbsp;on line&amp;nbsp;&lt;STRONG&gt;16&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Warning: include(): Failed opening '/public_html/authorize/vendor/authorizenet/authorizenet/vendor/jms/serializer/src/JMS/Serializer/Annotation/Type.php' for inclusion (include_path='.:/opt/cpanel/ea-php56/root/usr/share/pear') in&amp;nbsp;&lt;STRONG&gt;/public_html/authorize/vendor/authorizenet/authorizenet/autoload.php&amp;nbsp;on line&amp;nbsp;&lt;STRONG&gt;16&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Fatal error: Class 'JMS\Serializer\Annotation\Type' not found in&amp;nbsp;&lt;STRONG&gt;/public_html/authorize/vendor/authorizenet/authorizenet/lib/net/authorize/util/SensitiveDataConfigType.php&amp;nbsp;on line&amp;nbsp;&lt;STRONG&gt;6&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Fri, 08 Jun 2018 03:25:28 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Composer-issue-installing-PHP-SDK/m-p/63331#M37484</guid>
      <dc:creator>HoosierWebs</dc:creator>
      <dc:date>2018-06-08T03:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Composer issue installing PHP SDK</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Composer-issue-installing-PHP-SDK/m-p/63336#M37485</link>
      <description>&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;The images you shared are failing to load. Please share them again, as they can be helpful for reviewing and understanding your issue.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Meanwhile, can you try running the following &lt;STRONG&gt;3 steps (no manual file modifications):&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Git clone &lt;A href="https://github.com/AuthorizeNet/sample-code-php" target="_blank"&gt;https://github.com/AuthorizeNet/sample-code-php&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;In sample-code-php folder, run composer update&lt;/LI&gt;&lt;LI&gt;php PaymentTransactions/charge-credit-card.php&lt;P&gt;Example ($ denotes the Git bash prompt):&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$ git clone https://github.com/AuthorizeNet/sample-code-php&lt;BR /&gt;$ cd sample-code-php&lt;BR /&gt;$ composer update&lt;BR /&gt;&lt;SPAN&gt;$ php PaymentTransactions/charge-credit-card.php&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;For running the php code, command promot or Git bash should suffice, you do not need to run the php file in a browser. If using Windows command prompt,&amp;nbsp;only the 4th command would use '\' instead of '/' .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this step succeeds, you can make any changes you wish to charge-credit-card.php and test them.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Ashutosh&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Fri, 08 Jun 2018 12:10:40 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Composer-issue-installing-PHP-SDK/m-p/63336#M37485</guid>
      <dc:creator>ashu8uec</dc:creator>
      <dc:date>2018-06-08T12:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Composer issue installing PHP SDK</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Composer-issue-installing-PHP-SDK/m-p/63354#M37496</link>
      <description>&lt;P&gt;Thanks.&amp;nbsp;It appears to be resolved&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jun 2018 23:46:52 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Composer-issue-installing-PHP-SDK/m-p/63354#M37496</guid>
      <dc:creator>HoosierWebs</dc:creator>
      <dc:date>2018-06-09T23:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Composer issue installing PHP SDK</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Composer-issue-installing-PHP-SDK/m-p/63355#M37497</link>
      <description>&lt;P&gt;That is great to hear! Thanks for updating us.&lt;BR /&gt;Can you also share if there was any mistake that other novices can look after, or any improvement that can be done to the documentation to simplify it?&lt;BR /&gt;&lt;BR /&gt;Ashutosh&lt;BR /&gt;Happy Coding!&lt;BR /&gt;Authorize.Net&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jun 2018 01:25:12 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Composer-issue-installing-PHP-SDK/m-p/63355#M37497</guid>
      <dc:creator>ashu8uec</dc:creator>
      <dc:date>2018-06-10T01:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Composer issue installing PHP SDK</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Composer-issue-installing-PHP-SDK/m-p/63416#M37545</link>
      <description>&lt;P&gt;Sure thing... In my case. Perhaps in general.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/AuthorizeNet/sdk-php" target="_self"&gt;https://github.com/AuthorizeNet/sdk-php&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Installation Composer&lt;/P&gt;&lt;P&gt;We recommend using&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://getcomposer.org/" target="_blank" rel="nofollow"&gt;Composer&lt;/A&gt;.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;(Note: we never recommend you override the new secure-http default setting)&lt;/EM&gt;.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;Update your composer.json file as per the example below and then run&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;composer update.&lt;/EM&gt;&lt;/P&gt;&lt;DIV class="highlight highlight-source-json"&gt;&lt;PRE&gt;{
  &lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;require&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;: {
  &lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;php&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;: &lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&amp;gt;=5.6&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;,
  &lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;authorizenet/authorizenet&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;: &lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;~1.9.7&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
  }
}&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the provided file&amp;nbsp;&lt;A href="https://github.com/AuthorizeNet/sdk-php/blob/master/composer.json" target="_self"&gt;https://github.com/AuthorizeNet/sdk-php/blob/master/composer.json&lt;/A&gt;&amp;nbsp;is modified and not the same as the instructions and not the same as &lt;A href="https://developer.authorize.net/hello_world/" target="_self"&gt;https://developer.authorize.net/hello_world/&lt;/A&gt;&amp;nbsp;Step 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will also note the Hellow World - Step 1 is out of date for the SDK...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Composer with this file content resolved for me:&lt;/P&gt;&lt;PRE&gt;{
  &lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;require&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;: {
  &lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;php&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;: &lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&amp;gt;=5.6&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;,
  &lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;authorizenet/authorizenet&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;: &lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;~1.9.7&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
  }
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There seems to be an issue as well with clear guidance for use and getting started.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For instance. After getting the SDK working, where and how to place (folder hyerarchy) for&amp;nbsp;adding&amp;nbsp;&lt;A href="https://github.com/AuthorizeNet/accept-sample-app" target="_self"&gt;https://github.com/AuthorizeNet/accept-sample-app&lt;/A&gt;&amp;nbsp;in for testing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And one more, the &lt;A href="https://github.com/AuthorizeNet/accept-sample-app" target="_self"&gt;https://github.com/AuthorizeNet/accept-sample-app&lt;/A&gt;&amp;nbsp;despite havinging followed this to a T and having all requirements met... It still will not allow access with the Customer ID (and yes it is entered on my Sandbox.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to Use the Sample App&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Clone or download this repository.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Host the sample app in any web server supporting PHP, for example IIS or XAMPP (Apache).&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;HTTPS (SSL) must be enabled for your website.&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Set the authentication credentials in the application so that it uses your Authorize.Net sandbox (test) account. If you haven't yet signed up for a sandbox account, you can create a sandbox account at our [Developer Center] (&lt;A href="https://developer.authorize.net/hello_world/sandbox/" target="_blank" rel="nofollow"&gt;https://developer.authorize.net/hello_world/sandbox/&lt;/A&gt;). Set environment variables for&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;API_LOGIN_ID&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;TRANSACTION_KEY&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;using the credentials for your Authorize.Net sandbox account. For example, in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;httpd.conf&lt;/EM&gt;, you would add the following lines:&lt;/P&gt;&lt;PRE&gt;  SetEnv API_LOGIN_ID your_id
  SetEnv TRANSACTION_KEY your_key  &lt;/PRE&gt;&lt;P&gt;For IIS, you could set these environment variables in FastCGI Settings -&amp;gt; Environment Variables.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Set the authentication credentials that Accept.js uses. Edit the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;acceptJSCaller()&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;function in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;acceptJSCaller.js&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to use your API login ID and public client key for the values of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;authData.apiLoginID&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;authData.clientKey. A public client key can be created by logging into the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://sandbox.authorize.net/" target="_blank" rel="nofollow"&gt;Merchant Interface&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and navigating to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Account --&amp;gt; Security Settings --&amp;gt; Manage Public Client Key&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Browse the application (&lt;EM&gt;index.php&lt;/EM&gt;) over HTTPS connection.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;To "log in", use a customer profile ID that already exists within your account or create a new one by using the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://developer.authorize.net/api/reference/index.html#customer-profiles-create-customer-profile" target="_blank" rel="nofollow"&gt;Create a Customer Profile API&lt;/A&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;In these examples, payment forms are shown in the same page and Shipping forms are handled in a separate modal popup. However, any of the types of display can be chosen to display any type of form.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;While I see why all are broken up into their own repository. I think there is an oportunity to keep continuity and guidance for using / testing all. You may also note the empty README files... why include them if you have no content. The reference page &lt;A href="https://developer.authorize.net/api/reference/features/acceptjs.html" target="_self"&gt;https://developer.authorize.net/api/reference/features/acceptjs.html&lt;/A&gt;&amp;nbsp;with "complete" html examples is also somwhat decieving as it does not clearly advise to what page you should post the form. Self? Also does not appear to work as when attempted no response appears to display or did I miss something in the instructions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps I am just a bit frustrated for an out of the box experience I am use to with other platforms and examples. Finding no 3rd party reference either, and somewhat dated and lacking reference and few replies to forum posts here (excluding present thread).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just know I'm out 2 weeks working on my project and I just need to be done and&amp;nbsp;on par with learning how to use the SDK properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 22:13:43 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Composer-issue-installing-PHP-SDK/m-p/63416#M37545</guid>
      <dc:creator>HoosierWebs</dc:creator>
      <dc:date>2018-06-15T22:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Composer issue installing PHP SDK</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Composer-issue-installing-PHP-SDK/m-p/84113#M53034</link>
      <description>&lt;P&gt;why is the autoload mapping necessary in the composer file as seen here:&amp;nbsp;&lt;A href="https://github.com/AuthorizeNet/sdk-php/blob/master/composer.json" target="_self" rel="nofollow noopener noreferrer"&gt;https://github.com/AuthorizeNet/sdk-php/blob/master/composer.json&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 17:17:53 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Composer-issue-installing-PHP-SDK/m-p/84113#M53034</guid>
      <dc:creator>cowebpost</dc:creator>
      <dc:date>2022-09-13T17:17:53Z</dc:date>
    </item>
  </channel>
</rss>

