AuthorizeNet / sample-code-php

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

Got PHP error #42

Closed musaddiq-pk closed 7 years ago

musaddiq-pk commented 8 years ago

Hello, I got the following php error while running authoriz.net\sample-code-php-master\PaymentTransactions/refund-transaction.php code.

Warning: require(C:\xampp\htdocs/vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\croppic-master\refund-transaction.php on line 2

ashtru commented 8 years ago

Please try running composer for windows. Give the location ofphp.iniwhen asked for php path. On running composer, it generates the vendorfolder which has autoload.php. In the require, make sure you are giving the correct location of autoload.phpgenerated.

daniel-farina commented 8 years ago

You should really use a virtual machine, windows will give you a lot of headaches. I recommend using:

https://scotch.io/bar-talk/announcing-scotch-box-2-5

ashtru commented 7 years ago

Thanks for raising the issue @musaddiq-pk . I am going to close this issue, please reopen it if you have further problems or questions.

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.