chrismeller / cybersource

A simple class for interfacing with some of the basic methods of the CyberSource SOAP Toolkit API for processing credit card transactions online.
35 stars 30 forks source link

require(config.php) #7

Closed dotopidev closed 11 years ago

dotopidev commented 11 years ago

i have installed it with in xxamp , when i go to http://localhost/cybersource/tests/main.php and i got this bug "Warning: require(config.php) [function.require]: failed to open stream: No such file or directory in /Applications/XAMPP/xamppfiles/htdocs/cybersource/tests/main.php on line 6"

I don't file any file named config.php in your souce ? so can you send me an example of this file ?

chrismeller commented 11 years ago

The class is instantiated in main.php with:

$c = CyberSource::factory( $merchant_id, $transaction_id, CyberSource::ENV_TEST );

So config.php should simply set $merchant_id and $transaction_id.

And you should not visit main.php directly, that won't do anything. You visit each of the "tests" separately.