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 ...
| |||||||
| Register | FAQ | Donate | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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"; ?> |
|
#2
| ||||
| ||||
| 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 |
|
#3
| |||
| |||
| 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 |
![]() |
| Thread Tools | |
| |
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 |