Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Jan 2012
    Posts
    28
    Plugin Contributions
    0

    Default paypal timeout on check out

    I've been getting this error for a couple weeks. dreamhost says nothing is changed on their side.
    I've applied all the patches I've seen posted. Any help or ides are appreciated. I can post more detail, just let me know what would be helpful.

    Thanks


    This is the error.
    Code:
    Response:
    Array
    (
        [] =>
        [CURL_ERRORS] => (7) Failed to connect to api-3t.paypal.com port 443: Connection timed out
    )
    
    (7) Failed to connect to api-3t.paypal.com port 443: Connection timed out
    Array
    (
        [url] => https://api-3t.paypal.com/nvp
        [content_type] =>
        [http_code] => 0
        [header_size] => 0
        [request_size] => 0
        [filetime] => -1
        [ssl_verify_result] => 0
        [redirect_count] => 0
        [total_time] => 8.749254
        [namelookup_time] => 3.5E-5
        [connect_time] => 0
        [pretransfer_time] => 0
        [size_upload] => 0
        [size_download] => 0
        [speed_download] => 0
        [speed_upload] => 0
        [download_content_length] => -1
        [upload_content_length] => -1
        [starttransfer_time] => 0
        [redirect_time] => 0
        [redirect_url] =>
        [primary_ip] =>
        [certinfo] => Array
            (
            )
    
        [primary_port] => 0
        [local_ip] =>
        [local_port] => 0
    )
    
    
    SetExpressCheckout, Elapsed: 8751ms -- Failed
    (7) Failed to connect to api-3t.paypal.com port 443: Connection timed out
    Array
    (
        [url] => https://api-3t.paypal.com/nvp
        [content_type] =>
        [http_code] => 0
        [header_size] => 0
        [request_size] => 0
        [filetime] => -1
        [ssl_verify_result] => 0
        [redirect_count] => 0
        [total_time] => 8.749254
        [namelookup_time] => 3.5E-5
        [connect_time] => 0
        [pretransfer_time] => 0
        [size_upload] => 0
        [size_download] => 0
        [speed_download] => 0
        [speed_upload] => 0
        [download_content_length] => -1
        [upload_content_length] => -1
        [starttransfer_time] => 0
        [redirect_time] => 0
        [redirect_url] =>
        [primary_ip] =>
        [certinfo] => Array
            (
            )
    
        [primary_port] => 0
        [local_ip] =>
        [local_port] => 0
    )

  2. #2
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,684
    Plugin Contributions
    9

    Default Re: paypal timeout on check out

    in:

    /includes/modules/payment/paypal/paypal_curl.php

    what do you have around line 60 for:
    Code:
    CURLOPT_SSLVERSION => 3,
    you need to comment that line out so it should look like:

    Code:
    //CURLOPT_SSLVERSION => 3,
    see:

    https://goo.gl/7SRmVc
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: paypal timeout on check out

    Quote Originally Posted by carlwhat View Post
    in:

    /includes/modules/payment/paypal/paypal_curl.php

    what do you have around line 60 for:
    Code:
    CURLOPT_SSLVERSION => 3,
    you need to comment that line out so it should look like:

    Code:
    //CURLOPT_SSLVERSION => 3,
    see:

    https://goo.gl/7SRmVc
    Or more officially:
    https://www.zen-cart.com/showthread....yment-security
    and
    https://www.zen-cart.com/forumdispla...-Announcements
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Jan 2012
    Posts
    28
    Plugin Contributions
    0

    Default Re: paypal timeout on check out

    Hi and thanks. I changed that code when it was made available in nov 2014.
    Here is what I have.
    Code:
      var $_curlOptions = array(CURLOPT_HEADER => 0,
                                CURLOPT_RETURNTRANSFER => TRUE,
                                CURLOPT_TIMEOUT => 45,
                                CURLOPT_CONNECTTIMEOUT => 10,
                                CURLOPT_FOLLOWLOCATION => FALSE,
                              //CURLOPT_SSL_VERIFYPEER => FALSE, // Leave this line commented out! This should never be set to FALSE on a live site!
                              //CURLOPT_CAINFO => '/local/path/to/cacert.pem', // for offline testing, this file can be obtained from http://curl.haxx.se/docs/caextract.html ... should never be used in production!
                               // CURLOPT_SSLVERSION => 3,
                                CURLOPT_FORBID_REUSE => TRUE,
                                CURLOPT_FRESH_CONNECT => TRUE,
                                CURLOPT_POST => TRUE,
                                );

  5. #5
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: paypal timeout on check out

    What about the "fix" provided in ZC 1.5.4, identified to relate to previous ZC versions and incorporated into ZC 1.5.5 published here: https://www.zen-cart.com/showthread....02#post1270902
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    Jan 2012
    Posts
    28
    Plugin Contributions
    0

    Default Re: paypal timeout on check out

    Quote Originally Posted by mc12345678 View Post
    What about the "fix" provided in ZC 1.5.4, identified to relate to previous ZC versions and incorporated into ZC 1.5.5 published here: https://www.zen-cart.com/showthread....02#post1270902
    all are applied, ever since the fix was made available. I'm stumped and neither paypal, dreamhost are helping all pointing to zencart. I setup a new cart in a test domain, same version, and activated paypal with the same credentials and still no joy. i'm kinda stuck.
    j

  7. #7
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,684
    Plugin Contributions
    9

    Default Re: paypal timeout on check out

    j,
    dreamhost and paypal are pointing to ZC. let's verify that, by attempting a curl call outside of ZC. right now, you are timing out with a response time of 8.7 seconds. copy the following code into a new script; call it what you like, perhaps curl_test.php. load it onto the root folder of your domain, and then run it by calling www.yourdomain.com/curl_test.php. it will cause an error but we can see if it's safe to say its a ZC problem or not. frankly, i'm at dreamHost as well right now, and i think it's probably ZC, but lets just eliminate them from the problem.

    Code:
    <?php
    
    $starttime = microtime_float();
    echo "starting..."; flush();
    
    $hostname_2 = 'https://api-3t.paypal.com/nvp';
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL,$hostname_2);
    curl_setopt($ch, CURLOPT_VERBOSE, 1);
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_DNS_USE_GLOBAL_CACHE, false);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
    curl_setopt($ch, CURLOPT_PORT,443);
    
    $resp = curl_exec($ch);
    
    $curlerror = false;
    if (curl_errno($ch) ) {
      $curlerror = curl_error($ch);
    }
    
    $endtime = microtime_float();
    
    echo "\n<br/>elapsed time: " ; flush();
    echo ($endtime - $starttime); flush();
    echo "\n<br/>RESPONSE:<pre> " . $resp . ($curlerror ? " ERROR: $curlerror" : '') ."</pre><br/>\n";
    
    
    function microtime_float()
    {
       list($usec, $sec) = explode(" ", microtime());
       return ((float)$usec + (float)$sec);
    }
    i have it here:

    www.rossroberts.com/curl_test.php

    after uploading what do you get as an elapsed time? (an error is expected after the elapsed time...)
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  8. #8
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: paypal timeout on check out

    Using the ZC provided /extras/curltester.php?details=on
    On a dreamhost site to which I have access, I get the following for PayPal Express:

    Code:
    Connection Details:
    Array
    (
        [url] => "https://api-3t.paypal.com/nvp"
        [content_type] => text/plain; charset=utf-8
        [http_code] => 200
        [header_size] => 599
        [request_size] => 209
        [filetime] => -1
        [ssl_verify_result] => 0
        [redirect_count] => 0
        [total_time] => 0.453353
        [namelookup_time] => 3.3E-5
        [connect_time] => 0.067277
        [pretransfer_time] => 0.27356
        [size_upload] => 37
        [size_download] => 146
        [speed_download] => 322
        [speed_upload] => 81
        [download_content_length] => 146
        [upload_content_length] => 37
        [starttransfer_time] => 0.453203
        [redirect_time] => 0
        [redirect_url] => 
        [primary_ip] => 66.211.168.126
        [certinfo] => Array
            (
            )
    
        [primary_port] => 443
        [local_ip] => xxx.xxx.xxx.xxx
        [local_port] => xx
    )
    That code doesn't purposefully throw an error. Not sure if that is an intended result or not.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  9. #9
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,684
    Plugin Contributions
    9

    Default Re: paypal timeout on check out

    well, i have not looked at the code for the /extras/curltester.php, but i LIKE what it is doing.

    definitely recommend trying that as opposed to my little snippet. i put that together many years ago, before ZC had a curltester.php or i knew about it!

    if it does not run, you may need to comment out the last line in the /extras/.htaccess file.

    hope you get it solved!
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  10. #10
    Join Date
    Jan 2012
    Posts
    28
    Plugin Contributions
    0

    Default Re: paypal timeout on check out

    M123456789, Carlwhat, DrByte.
    Thank you for helping. Paypal is working again - on its own - as of yesterday. I didn't change any settings, it just started working. at least I can't think of what I may have done to have it start working again. I am working on upgrading to 1.5.5a.

    so frustrating....but am happy that it is working and hoping it will stay working.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. 139 paypal express check out final check out page "blank"
    By imen in forum PayPal Express Checkout support
    Replies: 8
    Last Post: 31 Dec 2013, 04:57 PM
  2. Paypal Express Check Out not showing shipping charges on first visit to Paypal
    By Capricorn in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 4 Jun 2013, 01:39 AM
  3. Paypal check out issue?
    By Snaggle in forum General Questions
    Replies: 5
    Last Post: 26 Aug 2012, 02:37 AM
  4. Paypal check out error
    By maperr55 in forum General Questions
    Replies: 7
    Last Post: 30 May 2008, 08:04 AM
  5. PayPal Check out
    By Bionic Rooster in forum General Questions
    Replies: 30
    Last Post: 25 May 2007, 01:06 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR