I receive the following when running: "/opt/php55/bin/php composer.phar require authorizenet/authorizenet"
Your requirements could not be resolved to an installable set of packages.
Problem 1 - 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.
Installation failed, reverting ./composer.json to its original content.
Composer.json contents:
"name": "authorizenet/authorizenet",
"type": "library",
"description": "Official PHP SDK for Authorize.Net",
"keywords": ["authorizenet", "authorize.net", "payment", "ecommerce"],
"license": "proprietary",
"homepage": "http://developer.authorize.net",
"require": {
"php": "~5.3 || ~7.0",
"ext-curl": "*",
"ext-json": "*",
"ext-simplexml": "*",
"ext-xmlwriter": "*",
"goetas-webservices/xsd2php-runtime":"^0.2",
"goetas-webservices/xsd-reader": "^0.1",
"authorizenet/authorizenet": "~1.8",
"jms/serializer": "serializer-master-dev as 1.0"
},
"require-dev": {
"phpunit/phpunit": "~4.0",
"phpmd/phpmd": "~2.0"
},
"autoload": {
"classmap": ["lib"]
},
"autoload-dev": {
"classmap": ["tests"]
},
"repositories": [{
"type": "vcs",
"url": "https://github.com/goetas/serializer.git"
}]
}
Any help would be appreciated, as this has not been the smoothest of processes.
07-07-2016 09:59 PM
using "sdk-php-1.8.9" if it matters
07-07-2016 10:01 PM
In case anyone has the same problem, the composer.json file is way outdated when you download the latest sdk from https://github.com/AuthorizeNet/sdk-php/releases. I downloaded the .zip file
AuthorizeNet/sdk-php: PHP SDK for Authorize.Net API
{ "require": { "php": ">=5.5", "ext-curl": "*", "authorizenet/authorizenet": "1.8.9", "jms/serializer": "serializer-master-dev as 1.0" }, "repositories": [{ "type": "vcs", "url": "https://github.com/goetas/serializer.git" }] }
07-12-2016 08:27 AM - last edited on 07-12-2016 12:10 PM by RichardH