<?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 at install in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Composer-issue-at-install/m-p/61473#M35916</link>
    <description>&lt;P&gt;Thank you Ashu,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I updated composer.json and reran. I think we are getting close but I still encountered an error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Generating autoload files&lt;/P&gt;&lt;P&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;/P&gt;&lt;P&gt;&lt;BR /&gt;update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [&amp;lt;packages&amp;gt;]...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions as to what might be causing this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Al&lt;/P&gt;</description>
    <pubDate>Fri, 02 Feb 2018 13:34:59 GMT</pubDate>
    <dc:creator>ahawtin2018</dc:creator>
    <dc:date>2018-02-02T13:34:59Z</dc:date>
    <item>
      <title>Composer issue at install</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Composer-issue-at-install/m-p/61446#M35895</link>
      <description>&lt;P&gt;Not sure what is going on but composer isn't happy with the composer.json file. It is currently:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"name": "authorizenet/authorizenet",&lt;BR /&gt;"type": "library",&lt;BR /&gt;"description": "Official PHP SDK for Authorize.Net",&lt;BR /&gt;"keywords": ["authorizenet", "authorize.net", "payment", "ecommerce"],&lt;BR /&gt;"license": "proprietary",&lt;BR /&gt;"homepage": "&lt;A href="http://developer.authorize.net" target="_blank"&gt;http://developer.authorize.net&lt;/A&gt;",&lt;BR /&gt;"require": {&lt;BR /&gt;"php": "&amp;gt;=5.6",&lt;BR /&gt;"ext-curl": "*",&lt;BR /&gt;"ext-json": "*",&lt;BR /&gt;"ext-simplexml": "*",&lt;BR /&gt;"ext-xmlwriter": "*",&lt;BR /&gt;"goetas-webservices/xsd2php-runtime":"^0.2.2",&lt;BR /&gt;"authorizenet/authorizenet": "~1.9"&lt;BR /&gt;},&lt;BR /&gt;"require-dev": {&lt;BR /&gt;"phpunit/phpunit": "~4.0",&lt;BR /&gt;"phpmd/phpmd": "~2.0"&lt;BR /&gt;},&lt;BR /&gt;"autoload": {&lt;BR /&gt;"classmap": ["lib"]&lt;BR /&gt;},&lt;BR /&gt;"autoload-dev": {&lt;BR /&gt;"classmap": ["tests"]&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error message is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your requirements could not be resolved to an installable set of packages.&lt;/P&gt;&lt;P&gt;Problem 1&lt;BR /&gt;- The requested package authorizenet/authorizenet No version set (parsed as 1.0.0) is satisfiable by authorizenet/authorizenet[No version set (parsed as 1.0.0)] but these conflict with your requirements or minimum-stability.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Al&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 17:25:38 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Composer-issue-at-install/m-p/61446#M35895</guid>
      <dc:creator>ahawtin2018</dc:creator>
      <dc:date>2018-01-31T17:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Composer issue at install</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Composer-issue-at-install/m-p/61470#M35914</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/23253"&gt;@ahawtin2018&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The error I see in the composer used above is that you have included dependency on "authorizenet/authorizenet" in your &lt;EM&gt;require &lt;/EM&gt;tag, when the&lt;EM&gt; &lt;EM&gt;name&lt;/EM&gt;&lt;/EM&gt; provided is also "authorizenet/authorizent".&lt;BR /&gt;In other words, Authorize.Net package cannot depend on itself .&lt;BR /&gt;&lt;EM&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If your goal is&amp;nbsp;to use a specific version of authorizenet sdk, then you can use a composer similar to the &lt;A href="https://github.com/AuthorizeNet/sdk-php/blob/master/composer.json" target="_self"&gt;sample code composer&amp;nbsp;:&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
  "require": {
  "php": "&amp;gt;=5.6",
  "ext-curl": "*",
  "phpunit/phpunit": "~4.8||~6.0",
  "authorizenet/authorizenet": "&amp;gt;=1.9.3 || &amp;lt;2.0"
  },
  "autoload": {
    "classmap": ["constants"]
  }
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Please reply if that works, or are&amp;nbsp;you looking for some thing else?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 10:41:10 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Composer-issue-at-install/m-p/61470#M35914</guid>
      <dc:creator>ashu</dc:creator>
      <dc:date>2018-02-02T10:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Composer issue at install</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Composer-issue-at-install/m-p/61473#M35916</link>
      <description>&lt;P&gt;Thank you Ashu,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I updated composer.json and reran. I think we are getting close but I still encountered an error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Generating autoload files&lt;/P&gt;&lt;P&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;/P&gt;&lt;P&gt;&lt;BR /&gt;update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [&amp;lt;packages&amp;gt;]...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions as to what might be causing this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Al&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 13:34:59 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Composer-issue-at-install/m-p/61473#M35916</guid>
      <dc:creator>ahawtin2018</dc:creator>
      <dc:date>2018-02-02T13:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Composer issue at install</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Composer-issue-at-install/m-p/61487#M35924</link>
      <description>&lt;P&gt;Ashu/AI, I was having the same problem, but taking just the line&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;"authorizenet/authorizenet": "&amp;gt;=1.9.3 || &amp;lt;2.0",&lt;/PRE&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;from&amp;nbsp;&lt;SPAN&gt;Ashu's suggestion&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;and putting that in the authorize.net included&amp;nbsp;composer.json allowed this to execute without error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;However, now that I try and process a transaction in a previoulsy functional&lt;SPAN&gt;authorize.net&lt;/SPAN&gt; install, I get&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Fatal error&lt;/STRONG&gt;&lt;SPAN&gt;: Class 'JMS\Serializer\Handler\StdClassHandler' not found in&amp;nbsp;&lt;STRONG&gt;/var/www/html/.../authorize.net/vendor/jms/serializer/src/JMS/Serializer/SerializerBuilder.php&amp;nbsp;&lt;/STRONG&gt;on line&amp;nbsp;&lt;STRONG&gt;162&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Any idea?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 19:46:40 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Composer-issue-at-install/m-p/61487#M35924</guid>
      <dc:creator>developermaui</dc:creator>
      <dc:date>2018-02-02T19:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Composer issue at install</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Composer-issue-at-install/m-p/61498#M35935</link>
      <description>&lt;P&gt;Wow - that is great to hear (in a way). I did manage to get a clean run of composer with Ashu's composer.json file. Then I run into the same problem:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Class 'JMS\Serializer\Handler\StdClassHandler' not found in&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;JMS\Serializer\SerializerBuilder-&amp;gt;addDefaultHandlers()&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;(line&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;162&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;of&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;/home/basicsby/public_html/basics-test/sites/all/libraries/anet_php_sdk/vendor/jms/serializer/src/JMS/Serializer/SerializerBuilder.php&lt;/EM&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Having some troulbe tracking down the problem and any help would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Al&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Feb 2018 13:20:48 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Composer-issue-at-install/m-p/61498#M35935</guid>
      <dc:creator>ahawtin2018</dc:creator>
      <dc:date>2018-02-03T13:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Composer issue at install</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Composer-issue-at-install/m-p/61504#M35940</link>
      <description>&lt;P&gt;&lt;BR /&gt;Please share the code you are executing.&lt;BR /&gt;&lt;BR /&gt;Also, are you including 'vendor/autoload.php'?&lt;BR /&gt;Please make sure to require 'vendor/autoload.php'&amp;nbsp; instead of 'autoload.php' in your code.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 12:45:14 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Composer-issue-at-install/m-p/61504#M35940</guid>
      <dc:creator>ashu</dc:creator>
      <dc:date>2018-02-05T12:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Composer issue at install</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Composer-issue-at-install/m-p/61506#M35942</link>
      <description>&lt;P&gt;Thanks for the hint Ashu.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Drupal which uses the library API. I had to dig into the module code to redirect the library reference from the library root directory to the vendor subdirectory. Just completed a successful test transaction so over this initial hurdle. Appreciate your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Al&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 16:55:30 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Composer-issue-at-install/m-p/61506#M35942</guid>
      <dc:creator>ahawtin2018</dc:creator>
      <dc:date>2018-02-05T16:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Composer issue at install</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Composer-issue-at-install/m-p/61531#M35963</link>
      <description>&lt;P&gt;Hi Ashu - unfortunately I am pointing to that and am still getting the error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Fatal error: Class 'JMS\Serializer\Handler\StdClassHandler' not found in /var/www/html/.../authorize.net/vendor/jms/serializer/src/JMS/Serializer/SerializerBuilder.php on line 162&lt;/PRE&gt;&lt;P&gt;Here is my simple test code. This is on a test server created from an image that was running an earlier version of Auhorize.net successfully for a number of years now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?php
define("AUTHORIZENET_SANDBOX", true);
require_once 'authorize.net/vendor/autoload.php'; // New file in 1.9x
$transaction = new AuthorizeNetAIM('DELETED', 'DELETED');
$transaction-&amp;gt;amount = '7.99';
$transaction-&amp;gt;card_num = '4111-1111-1111-1111';
$transaction-&amp;gt;exp_date = '10/22';
$transaction-&amp;gt;card_code = '123';

$transaction-&amp;gt;description = "Sample Transaction";

$transaction-&amp;gt;first_name	= "John";
$transaction-&amp;gt;last_name	= "Doe";
$transaction-&amp;gt;address		= "1234 Street";
$transaction-&amp;gt;state			= "WA";
$transaction-&amp;gt;zip			= "90210";


$response = $transaction-&amp;gt;authorizeAndCapture();

if ($response-&amp;gt;approved) {
  echo "&amp;lt;h1&amp;gt;Success! The test credit card has been charged!&amp;lt;/h1&amp;gt;";
  echo "Transaction ID: " . $response-&amp;gt;transaction_id;
} else {
  echo $response-&amp;gt;error_message;
}
?&amp;gt;&lt;/PRE&gt;&lt;P&gt;Thank you for your help :)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 02:40:21 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Composer-issue-at-install/m-p/61531#M35963</guid>
      <dc:creator>developermaui</dc:creator>
      <dc:date>2018-02-07T02:40:21Z</dc:date>
    </item>
  </channel>
</rss>

