osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Paypal and Website Payments Pro Problem

This is a discussion on Paypal and Website Payments Pro Problem within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Websites payment pro wouldn't work with oscommere so I called Paypal and their tech. department pointed me to a link ...



Find us on Facebook
Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Closed Thread

 

LinkBack Thread Tools
  #1  
Old 05-04-2008, 02:35 PM
Member
 
Join Date: May 2008
Posts: 50
Thanks: 13
Thanked 0 Times in 0 Posts
Rep Power: 2
lwilliams114 is on a distinguished road
Default Paypal and Website Payments Pro Problem

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";
?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 05-04-2008, 04:36 PM
michael_s's Avatar
osCMax Developer


 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 15,762
Thanks: 139
Thanked 609 Times in 521 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: Paypal and Website Payments Pro Problem

You need to add it to the curl connection portion of the paypal module. Specifically you need to add the httpproxytunnel, proxy and verifypeer settings.

Just open up the paypal module in a code editor and add the needed code. I think the location is near line 351 of the paypal_direct.php file.
__________________
Michael Sasek
osCMax Developer

*** Do not PM me requesting paid help. The only paid work I do is for AABox Web Hosting customers ***

Stay Up To Date with everything osCMax:
Free osCMax Newsletters - Security notices, New Releases, osCMax News
osCMax on Twitter - Up to the minute info as it happens. Know it first.

osCMax User Manual - osCMax Templates - Advanced Template Tutorial

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 05-14-2008, 12:23 PM
Member
 
Join Date: May 2008
Posts: 50
Thanks: 13
Thanked 0 Times in 0 Posts
Rep Power: 2
lwilliams114 is on a distinguished road
Default Re: Paypal and Website Payments Pro Problem

That php file doesn't exist in the entire oscmax directory. Paypal.ipn is the only thing I can find close to it and if that's it I am confused as where to place the script.
Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
PayPal Website Payments Pro (UK) Direct Payments michael_s New osCommerce Contributions 0 01-22-2008 01:11 PM
PayPal Website Payments Pro (US) Direct Payments michael_s New osCommerce Contributions 0 01-22-2008 01:11 PM
PayPal Website Payments Pro (UK) Direct Payments michael_s New osCommerce Contributions 0 01-11-2008 04:31 PM
PayPal Website Payments Pro (US) Direct Payments michael_s New osCommerce Contributions 0 01-11-2008 04:31 PM
PayPal Website Payments Pro JellyBean osCMax v2 Features Discussion 2 07-21-2005 06:42 AM


All times are GMT -8. The time now is 01:43 PM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2009 osCMax
Inactive Reminders By Icora Web Design