Skip to content

Commit a382848

Browse files
added extra information to prevent composer errors
1 parent ec2652f commit a382848

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,21 @@ The samples are all completely independent and self-contained so you can look at
1212

1313
##Running the Samples
1414
Clone this repository.
15-
Run "composer update" in the root directory.
15+
Run "composer update" in the root directory.
1616
Run the individual samples e.g.
1717
````
1818
php PaymentTransactions/charge-credit-card.php
1919
````
20+
Note: If during "composer update", you get the error "composer failed to open stream invalid argument", go to your php.ini file (present where you have installed PHP), and uncomment the following lines:
21+
````
22+
extension=php_openssl.dll
23+
extension=php_curl.dll
24+
````
25+
On Windows systems, you also have to uncomment:
26+
````
27+
extension_dir = "ext"
28+
````
29+
Then run the composer update again. You might have to restart your machine before the changes take effect.
2030

2131
##What if I'm not using Composer?
2232
We provide a custom `SPL` autoloader, just [download the SDK.](https://github.com/AuthorizeNet/sdk-php/releases):

0 commit comments

Comments
 (0)