Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Paypal Pro, cURL, Godaddy


agostal

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

Link to comment
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

Link to comment
Share on other sites

  • 3 weeks later...

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

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

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.

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.

Link to comment
Share on other sites

  • 3 weeks later...

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...