osCmax v2.5 User Manual
Results 1 to 3 of 3

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

      
  1. #1
    Member
    Join Date
    May 2008
    Posts
    50
    Rep Power
    5


    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";
    ?>

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    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


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    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 Documentation

  3. #3
    Member
    Join Date
    May 2008
    Posts
    50
    Rep Power
    5


    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

Similar Threads

  1. PayPal Website Payments Pro (UK) Direct Payments
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 01-22-2008, 01:11 PM
  2. PayPal Website Payments Pro (US) Direct Payments
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 01-22-2008, 01:11 PM
  3. PayPal Website Payments Pro (UK) Direct Payments
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 01-11-2008, 04:31 PM
  4. PayPal Website Payments Pro (US) Direct Payments
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 01-11-2008, 04:31 PM
  5. PayPal Website Payments Pro
    By JellyBean in forum osCMax v2 Features Discussion
    Replies: 2
    Last Post: 07-21-2005, 06:42 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •