Closed tmsimont closed 10 years ago
I too am getting a similar error! I followed the instructions exactly as they are stated(see my stack overflow here: http://stackoverflow.com/questions/18282483/server-500-error-when-implementing-paypals-rest-api-sdk-in-php).
This SDK seems pretty complicated for those just trying to implement a quick plugin code. Has anyone else had this issue?
@ericrosas that is not the same issue.
The problem you are having is related to this issue: https://github.com/paypal/rest-api-sdk-php/issues/18
My issue here is that the PayPal\Rest\ApiContext::setConfig()
function does not exist. The class is found, but if you look at the ApiContext
source code, there is no setConfig()
function.
How does one set config in PHP?
@ericrosas there was a comment asking for more info on your stackoverflow post. Also, I would say this is probably because you a re using a older version of the SDK. Can you post the SDK version from your composer.json?
When you uncomment the
setConfig()
function below the comment that reads "Uncomment this step if you want to use per request dynamic configuration instead of using sdk_config.ini"An error is thrown:
Is there no way to set the configuration outside of the .ini file?