AuthorizeNet / sample-code-php

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

Get error #35

Closed rinkujain43 closed 7 years ago

rinkujain43 commented 8 years ago

Hello,

I downloaded this code and trying to use in localhost but i was getting an warning that is "Warning: require(vendor/autoload.php): failed to open stream: No such file or directory in C:\wamp\www\samplemaster\test-runner.php on line 2". So where i can fond this vendore DIR and the file autoload.php.

ashtru commented 8 years ago

Did you try running composer update in the root directory? For which, composer should be installed.

ashtru commented 8 years ago

Did you get the issue resolved?

rinkujain43 commented 8 years ago

No I don't. After installation it need the php path.

On Wed, Mar 16, 2016 at 6:37 PM, Ashutosh Singh notifications@github.com wrote:

Did you get the issue resolved?

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/AuthorizeNet/sample-code-php/issues/35#issuecomment-197316493

Thanks & Regards Rinku Jain mob.- 9755317077

ashtru commented 8 years ago

For composer? You need to point it to the php directory e.g. C:\php or C:\Program Files\php You don't need any server (xampp, wamp, or IIS), you only need command-line php.

ashtru commented 8 years ago

or you can point it to the folder where your php.ini is inside wamp. It can be like C:\wamp\bin\php\php5.4.12

ashtru commented 8 years ago

But since you are not supposed to see this output in a browser. My final suggestion is; Install a command-line php like php5.6 non-thread (from here) in e.g. C:\php-5.6.14-Win32-VC11-x86 Install composer, pointing to this php folder. Open a windows command prompt in root folder of sample-code-php composer update php PaymentTransactions\charge-credit-card.php

Also Note: You cannot run php charge-credit-card.php from sample-code-php\PaymentTransactions folder.

adavidw commented 7 years ago

In the absence of any further questions, I'll close this issue for now. Please let us know if you need any more information or help.