cancel
Showing results for 
Search instead for 
Did you mean: 

Loading (PHP) API/SDK with correct search paths

I have installed the Authorize.net API and SDk on a PHP/MySQL site and have been using a limited number of functions to process credit card payments.  Now I want to do more such as authorize only, storing customer information, etc but I am getting a lot of errors.

 

I think when I originally loaded the API, I took some shorcuts, only loaded some scripts and hard coded directory paths.  Now, when I run sample code such as:

http://developer.authorize.net/api/reference/index.html#payment-transactions-authorize-a-credit-card


I am getting a lot of errors like:

 

"Warning: include(/Applications/... contract/v1/MerchantAuthenticationType.php): failed to open stream: No such file or directory i"

 

Is there a good "step-by-step" manual for loading the API/SDK including how to set the directory search paths correctly?  I can't seem to find one.

 

Thanks!

SeanF
Member
1 REPLY 1

 

Hi SeanF,

 

Our SDK is designed to be loaded using composer which automatically also downloads other dependencies such as the serializer. The error you are getting indicates that you are using the older version of the SDK, I suggest using the composer to install the latest version.

 

Thanks,

Joy

Joy
Administrator Administrator
Administrator