Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Paypal and Godaddy.com with Website Payments Pro


Recommended Posts

Websites payment pro wouldn't work with oscommere so I called Paypal and their tech. department pointed me to a link on Godaddy.com's website that shows a code that has to be put into the payment coding in oscommerce and I sure need help trying to figure out exactly where to put it. The following shows what the website says along with the coding. Please help me if you can.



Below is a PHP script that uses CURL to connect securely to a remote system (http://www.paypal.com), obtain data from that system and then creates a Web page based on that data.


Note: On our shared hosting, any CURL applications that make secure HTTP connections (HTTPS over port 443) need to pass through a proxy server. The address for this proxy server is proxy.shr.secureserver.net and connections must specify the use of port 3128. The code below already includes this information.





if (isset($_GET["site"])) { $URL = $_GET["site"]; }

$ch = curl_init();

echo "URL = $URL <br>n";

curl_setopt($ch, CURLOPT_VERBOSE, 1);



curl_setopt ($ch, CURLOPT_PROXY,"http://proxy.shr.secureserver.net:3128");


curl_setopt ($ch, CURLOPT_URL, $URL);

curl_setopt ($ch, CURLOPT_TIMEOUT, 120);

$result = curl_exec ($ch);

echo "<hr><br>n";

echo 'Errors: ' . curl_errno($ch) . ' ' . curl_error($ch) . '<br><br>';

echo "<hr><br>n";

curl_close ($ch);

print "result - $result";

echo "<hr><br>n";



Link to comment
Share on other sites

If you're like me and experiencing problem with SQL connection timeout (due to paypal sandbox or godaddy curl proxy taking too long). Try this and see if it helps (in includes/modules/payment/paypal_wpp.php)


// release the db connection since curl is going to take awhile

$response = curl_exec($ch);

// curl is done so reopen connection to db

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.

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...