OSCOMMERCE SUPPORT CALL 702-453-3332

 

Help - Search - Members - Calendar
Full Version: Paypal and Godaddy.com with Website Payments Pro
osCommerce Community Support Forums > osCommerce Online Merchant v2.x > Contributions / Add-Ons > Payment Modules > PayPal
lwilliams114
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.
Thanks

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.

<?

$URL="https://www.paypal.com";
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_HTTPPROXYTUNNEL, TRUE);
curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt ($ch, CURLOPT_PROXY,"http://proxy.shr.secureserver.net:3128");
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
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";

?>
bpopelar
Look at this posting.

Ben
lwilliams114
QUOTE (bpopelar @ May 4 2008, 06:24 PM) *
Look at this posting.

Ben

Ben thank you very much. The lines worked perfectly.
Lynn
smokinj03
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)

CODE
// release the db connection since curl is going to take awhile
tep_db_close();
        
$response = curl_exec($ch);

// curl is done so reopen connection to db
tep_db_connect();
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.