You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changes to make the sdk works with custom autoloader script and PHP 7.
classmap.php
============
Added Yaml class mapping references to make custom autoloader to work.
Ref : #86
README.md
=========
Added an argument to composer update command for composer to work with PHP 7
Ref : #78
.travis.yml
===========
Added an argument to composer install command to make sure the sdk works with PHP 7
Copy file name to clipboardExpand all lines: README.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,7 @@ require 'vendor/autoload.php';
27
27
```
28
28
*Note: you'll need a composer.json file with the following require section and to run
29
29
`composer update`.*
30
+
30
31
```json
31
32
{
32
33
"require": {
@@ -52,6 +53,15 @@ Alternatively, we provide a custom `SPL` autoloader:
52
53
require 'path/to/anet_php_sdk/autoload.php';
53
54
```
54
55
56
+
**Issue with PHP 7:***You may get below error when run the composer update with PHP 7. To get rid of this error, use `composer update --ignore-platform-reqs`*
57
+
```php
58
+
Problem 1
59
+
- Installation request for authorizenet/authorizenet 1.8.6.2 -> satisfiable
60
+
by authorizenet/authorizenet[1.8.6.2].
61
+
- authorizenet/authorizenet 1.8.6.2 requires php ~5.3 -> your PHP version (7
62
+
.0.3RC1) or value of "config.platform.php" in composer.json does not satisfy that requirement.
63
+
```
64
+
55
65
## Authentication
56
66
To authenticate with the Authorize.Net API you will need to retrieve your API Login ID and Transaction Key from the [`Merchant Interface`](https://account.authorize.net/). You can find these details in the Settings section.
57
67
If you need a sandbox account you can sign up for one really easily [`here`](https://developer.authorize.net/sandbox/).
@@ -139,6 +149,11 @@ else
139
149
echo "Charge Credit card Null response returned";
140
150
}
141
151
```
152
+
### Setting Production Environment
153
+
Replace the environment constant in the execute method. For example, in the method above:
0 commit comments