agostal Posted March 17, 2008 Posted March 17, 2008 I have oscommerce, paypal pro (US) and am hosted at godaddy I would like to findout exactly which php to configure for cURL to to enable paypal to work Been looking but nothing definitive so far How di I configure Oscommerce to use cURL at godaddy ? Ty Quote
Psilocybeing Posted March 18, 2008 Posted March 18, 2008 I have oscommerce, paypal pro (US) and am hosted at godaddy I would like to findout exactly which php to configure for cURL to to enable paypal to work Been looking but nothing definitive so far How di I configure Oscommerce to use cURL at godaddy ? Ty While writing my WorldPay Select Invisible module, I came across this issue also. Making SSL requests with cURL on GoDaddy's hosting requires that you go through their proxy, otherwise requests are simply denied..they won't connect, and time out. Add the below three lines to your cURL initiation function, and requests should go through without a hitch. Replace $this->channel with the variable linked to your cURL instance, of course. curl_setopt ( $this->channel, CURLOPT_HTTPPROXYTUNNEL, TRUE); curl_setopt ( $this->channel, CURLOPT_PROXYTYPE, CURLPROXY_HTTP); curl_setopt ( $this->channel, CURLOPT_PROXY, 'http://proxy.shr.secureserver.net:3128'); Good luck Quote
gclawton Posted April 8, 2008 Posted April 8, 2008 What file do you make this addition too? this is my problem. While writing my WorldPay Select Invisible module, I came across this issue also. Making SSL requests with cURL on GoDaddy's hosting requires that you go through their proxy, otherwise requests are simply denied..they won't connect, and time out. Add the below three lines to your cURL initiation function, and requests should go through without a hitch. Replace $this->channel with the variable linked to your cURL instance, of course. curl_setopt ( $this->channel, CURLOPT_HTTPPROXYTUNNEL, TRUE); curl_setopt ( $this->channel, CURLOPT_PROXYTYPE, CURLPROXY_HTTP); curl_setopt ( $this->channel, CURLOPT_PROXY, 'http://proxy.shr.secureserver.net:3128'); Good luck Quote
Psilocybeing Posted April 9, 2008 Posted April 9, 2008 (edited) What file do you make this addition too? this is my problem. Search for the text 'curl_init( );' in the module. It should read something like: '$this->channel = curl_init( );', after which there will be multiple lines using the 'curl_setopt' function. Simply ammend the first argument of the 'curl_setopt' calls that I previously posted here to point towards the cURL instance, and paste them under the calling of 'curl_init'. That should set you straight. If you are still having trouble after this advice, post exactly which module you are using, and if needs be a URL pointing to the contribution, and I'll be happy to take a look for you. Good luck! :) Edited April 9, 2008 by Psilocybeing Quote
dynamoeffects Posted April 9, 2008 Posted April 9, 2008 This PayPal Pro module works for GoDaddy users: http://addons.oscommerce.com/info/3647 There's a field in the module's settings for the proxy address. Quote Please use the forums for support! I am happy to help you here, but I am unable to offer free technical support over instant messenger or e-mail.
ccohen Posted May 1, 2008 Posted May 1, 2008 This worked for me: //BEGIN GODADDY FIX curl_setopt($curl, CURLOPT_VERBOSE, 1); curl_setopt($curl, CURLOPT_HTTPPROXYTUNNEL, TRUE); curl_setopt($curl, CURLOPT_PROXYTYPE, CURLPROXY_HTTP); curl_setopt($curl, CURLOPT_PROXY, "http://proxy.shr.secureserver.net:3128"); curl_setopt($curl, CURLOPT_TIMEOUT, 120); //END GODADDY FIX Add to your catalog/includes/modules/payment/paypal_direct.php right under: if (function_exists('curl_init')) { $curl = curl_init($server['scheme'] . '://' . $server['host'] . $server['path'] . (isset($server['query']) ? '?' . $server['query'] : '')); curl_setopt($curl, CURLOPT_PORT, $server['port']); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_FORBID_REUSE, 1); curl_setopt($curl, CURLOPT_FRESH_CONNECT, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_POSTFIELDS, $parameters); Your cUrl parameter on the admin side must be as per default: cURL Program Location /usr/bin/curl Good Luck! I have oscommerce, paypal pro (US) and am hosted at godaddy I would like to findout exactly which php to configure for cURL to to enable paypal to work Been looking but nothing definitive so far How di I configure Oscommerce to use cURL at godaddy ? Ty Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.