AuthorizeNet / sample-code-php

This repository contains working code samples which demonstrate php integration with the Authorize.Net API
MIT License
175 stars 197 forks source link

Older Version of SDK #84

Closed upstateInc closed 7 years ago

upstateInc commented 7 years ago

Hello, The new version of SDK requires php 5.5 but our hosting has 5.4.5. It is not possible to migrate to php 5.5 just for one application. So is it possible we can use an older version of sdk ? I got an idea that older versions can be used. So I changed the composer.json code to {

"require": { "php": ">=5.2.0", "ext-curl": "*", "authorizenet/authorizenet": "1.8.1", "jms/serializer": "xsd2php-dev as 0.18.0" }, "repositories": [{ "type": "vcs", "url": "https://github.com/goetas/serializer.git" }]

}

and then from putty typed the following code composer require authorizenet/authorizenet

but still receiving the error message

Your requirements could not be resolved to an installable set of packages.

Problem 1

Installation failed, reverting ./composer.json to its original content.

What wrong possibly I am doing kindly help... Thanks in advance.

adavidw commented 7 years ago

Sorry, we can't support anything earlier than 5.5, both because our dependencies require it, and for security reasons.