New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add proxy configuration #92
Conversation
THIS IS JUST WHAT I NEED! PLEASE INTEGRATE! |
Tnx a lot napolux,
|
Need this 👍 |
@@ -131,6 +131,11 @@ public function _doUrlRequest($httpVerb, $url, $requestBody = null) | |||
curl_setopt($curl, CURLOPT_POSTFIELDS, $requestBody); | |||
} | |||
|
|||
if (!empty($this->_config->getProxy())) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prior to PHP version 5.5 this will result in the following error:
Can't use method return value in write context
Changed according to the comments. Tnx a lot |
Hi @coreykck, @napolux, and @reenl, We now support proxy configuration in our PHP library. To use it, you can specify the proxy in a similar way to how you configure your merchant ID, public key, and private key:
If you want to specify the type of proxy (cURL's Official documentation is forthcoming, however this should be enough to get you started. If you run into any problems along the way feel free to open an issue. |
Tnx a lot bill.
|
Cool!
|
Add getter and setter to Configuration Class and get the proxy to configure curl option.
You must pass the proxy as "host:port"