Some hosts require all requests to go through a proxy (e.g. GoDaddy).
This is very easy to support. The config.inc.php file would need to be modified to add proxy host and proxy port settings.
Then, the registerSoapClient could add those settings into the options array when initializing the SoapClient.
My modified version for GoDaddy currently looks like:
public static function registerSoapClient()
$clientOptions = array("soap_version" => SOAP_1_1, "exceptions" => true, "trace" => true, "connection_timeout " => API_CONNECTION_TIMEOUT);
$clientOptions['proxy_host'] = 'proxy.shr.secureserver.net';
$clientOptions['proxy_port'] = 3128;
PayPalBase::setSoapClient(new SoapClient(API_WSDL, $clientOptions));
Log in to post a comment.