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

Error: Failed opening required 'vendor/autoload.php' #62

Closed tanjilseebiz closed 7 years ago

tanjilseebiz commented 7 years ago

When I run PaymentTransactions/charge-credit-card.php in browser I get the following error. /PaymentTransactions/charge-credit-card.php - require(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in /home/tj/seebiz/authorize.net/sample-code-php/PaymentTransactions/charge-credit-card.php on line 2

zahiruldu commented 7 years ago

Your file does not have proper folder identification to include the file. write require('../vendor/autoload.php');in your charge-credit-card.php file. Hope it will solve your problem.

tanjilseebiz commented 7 years ago

It worked! Thank you @zahiruldu