Jump to content
Sign in to follow this  
agostal

Paypal Pro, cURL, Godaddy

Recommended Posts

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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 by Psilocybeing

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×