Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2011
    Posts
    18
    Plugin Contributions
    0

    Default Paypal errors 77 since switching to php 7.1

    Since switching to php 7.1 I've been seeing paypal error 77 when attempting to checkout with paypal. I haven't been able to figure out exactly what the error code represents. I'm using zen cart 1.55f. Any thoughts?

    Full Error:
    Code:
    An error occurred when we tried to contact the payment processor. Please try again, select an alternate payment method, or contact the store owner for assistance. () - (77)

  2. #2
    Join Date
    Dec 2011
    Posts
    18
    Plugin Contributions
    0

    Default Re: Paypal errors 77 since switching to php 7.1

    I just noticed that zen cart is reporting that my PHP version is 7.2, but my host control panel is showing 7.1 version. Could this be related to my issues?

  3. #3
    Join Date
    Dec 2011
    Posts
    18
    Plugin Contributions
    0

    Default Re: Paypal errors 77 since switching to php 7.1

    Now zen cart is reporting php 7.1 just like my control panel.

    I've ran extras/paypal_tlstest.php:
    Code:
    CURL TLS Connection successful.
    ran extras/ipncheck.php:
    Code:
    IPNCHECK.PHP - Version 1.5.5
    
    CURL RESPONSE RECEIVED - Communications OKAY
    IPN TESTING - Response Received via CURL -- COMMUNICATIONS OKAY
    Ran extras/curltester.php:
    Code:
    Connection uses TLS 1.2
    
    Testing communications to various destinations. This is a simple diagnostic to determine whether your server can connect to common destinations.
    For advanced "details" mode, add ?details=on to the URL.
    
    (Another resource you may find useful for testing your server's overall customer-facing SSL configuration: https://www.ssllabs.com/ssltest/index.html )
    
    Connecting to Zen Cart Version Server (http) ...
    GOOD: CURL Connection successful.
    
    Connecting to Zen Cart Version Server (https) ...
    GOOD: CURL Connection successful.
    
    Connecting to Zen Cart Support Server (https) ...
    GOOD: CURL Connection successful.
    
    Connecting to USPS (port 80)...
    GOOD: CURL Connection successful.
    
    Connecting to USPS Test/Staging/Sandbox Server (port 80)...
    GOOD: CURL Connection successful.
    
    Connecting to UPS (port 80)...
    GOOD: CURL Connection successful.
    
    GOOD: Socket established
    
    Connecting to UPSXML (onlinetools.ups.com) ...
    GOOD: CURL Connection successful.
    
    Connecting to UPSXML (sandbox) ...
    GOOD: CURL Connection successful.
    
    Connecting to FedEx (port 80)...
    GOOD: Socket established
    
    Connecting to Canada Post REST API (SSL) ...
    GOOD: CURL Connection successful.
    
    Connecting to PayPal IPN (port 443)...
    GOOD: Socket established
    
    GOOD: CURL Connection successful.
    
    Connecting to PayPal IPN (port 443) Sandbox ...
    GOOD: Socket established
    
    GOOD: CURL Connection successful.
    
    Connecting to PayPal Express/Pro Server ...
    GOOD: CURL Connection successful.
    
    Connecting to PayPal Express/Pro Sandbox ...
    GOOD: CURL Connection successful.
    
    Connecting to PayPal Payflowpro Server ...
    GOOD: CURL Connection successful.
    
    Connecting to PayPal Payflowpro Pilot/Sandbox Server ...
    GOOD: CURL Connection successful.
    
    Connecting to PayPal TLSTest Server ...
    GOOD: CURL Connection successful.
    
    Connecting to Cardinal Commerce 3D-Secure Server ...
    GOOD: CURL Connection successful.
    
    Connecting to Square Payments Server ...
    GOOD: CURL Connection successful.
    
    Connecting to AuthorizeNet Production Server ...
    GOOD: CURL Connection successful.
    
    Connecting to AuthorizeNet Developer/Sandbox Server ...
    GOOD: CURL Connection successful.
    
    Connecting to First Data GGe4 server (SSL)...
    GOOD: CURL Connection successful.
    
    Connecting to Payeezy Processing Server...
    GOOD: CURL Connection successful.
    
    Connecting to Payeezy Sandbox Server...
    GOOD: CURL Connection successful.
    
    Connecting to Elavon Server...
    GOOD: CURL Connection successful.
    
    Connecting to Elavon Sandbox Server...
    GOOD: CURL Connection successful.
    
    Testing completed. See results above.
    Found this error in the logs Paypal_CURL_******.log I've edited out the ip addresses and some other info:

    Code:
    2019-02-22 08:16:15
    -------------------
    (live transaction) --> https://api-3t.paypal.com/nvp
    Request Headers: 
    Array
    (
        [0] => Content-Type: text/namevalue
        [1] => X-VPS-Timeout: 90
        [2] => X-VPS-VIT-Client-Type: PHP/cURL
        [3] => X-VPS-VIT-Integration-Product: PHP::Zen Cart(R) - PayPal/NVP
        [4] => X-VPS-VIT-Integration-Version: 1.5.5
    )
    
    
    Request Parameters: {SetExpressCheckout} 
    Array
    (
        [PAYMENTREQUEST_0_AMT] => 6.49
        [PAYMENTREQUEST_0_ITEMAMT] => 6.49
        [L_PAYMENTREQUEST_0_NAME0] => Test Product
        [L_PAYMENTREQUEST_0_QTY0] => 1
        [L_PAYMENTREQUEST_0_AMT0] => 6.49
        [PAYMENTREQUEST_0_CURRENCYCODE] => USD
        [LOCALECODE] => US
        [GIFTMESSAGEENABLE] => 0
        [GIFTRECEIPTEENABLE] => 0
        [GIFTWRAPENABLE] => 0
        [GIFTWRAPNAME] => 
        [GIFTWRAPAMOUNT] => 0
        [BUYEREMAILOPTINENABLE] => 0
        [CUSTOMERSERVICENUMBER] => 
        [BRANDNAME] => 
        [PAYMENTREQUEST_0_PAYMENTACTION] => Sale
        [ALLOWNOTE] => 1
        [LANDINGPAGE] => Billing
        [NOSHIPPING] => 0
        [RETURNURL] => 
        [CANCELURL] => 
        [PAGESTYLE] => Primary
        [METHOD] => SetExpressCheckout
        [USER] => 
        [PWD] => 
        [VERSION] => 124.0
        [SIGNATURE] => 
    )
    
    
    Response: 
    Array
    (
        [] => 
        [CURL_ERRORS] => (77) 
    )
    
    (77) 
    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] => 0.012848
        [namelookup_time] => 0.012768
        [connect_time] => 0.081031
        [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] => 443
        [local_ip] => 
        [local_port] => 43582
    )
    
    
    SetExpressCheckout, Elapsed: 133ms -- Failed
    (77) 
    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] => 0.012848
        [namelookup_time] => 0.012768
        [connect_time] => 0.081031
        [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] => 443
        [local_ip] => 
        [local_port] => 43582
    )

  4. #4
    Join Date
    Jan 2004
    Posts
    65,307
    Blog Entries
    7
    Plugin Contributions
    228

    Default Re: Paypal errors 77 since switching to php 7.1

    CURL error 77 is an SSL/TLS CA configuration error.
    If it happened immediately after switching PHP versions, it's possible that your host's PHP configuration is different between PHP versions, and they need to make some adjustments. One way to confirm is to switch back to the other PHP version (assuming you're still on the same server).
    Error 77 is something your hosting company has to fix, because it's related to the internal SSL/TLS negotiation configuration.
    .

    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.

  5. #5
    Join Date
    Dec 2011
    Posts
    18
    Plugin Contributions
    0

    Default Re: Paypal errors 77 since switching to php 7.1

    Quote Originally Posted by DrByte View Post
    CURL error 77 is an SSL/TLS CA configuration error.
    If it happened immediately after switching PHP versions, it's possible that your host's PHP configuration is different between PHP versions, and they need to make some adjustments. One way to confirm is to switch back to the other PHP version (assuming you're still on the same server).
    Error 77 is something your hosting company has to fix, because it's related to the internal SSL/TLS negotiation configuration.
    Thanks for the reply DrByte. The host forced an update to 7.1 and so I can't go back. But it was working before the switch. Is there any way I can get more information/documentation about this error for my host to see what is going on. My google searches haven't come up with anything for this particular error. I've had errors like this in the past and it was extremely difficult to get them to do anything about it. Always saying it wasn't a problem on their end.

  6. #6
    Join Date
    Jan 2004
    Posts
    65,307
    Blog Entries
    7
    Plugin Contributions
    228

    Default Re: Paypal errors 77 since switching to php 7.1

    The "CURL error 77" is not happening "in" Zen Cart. It's happening from the PHP/CURL sublayer, which is entirely under the control of your hosting company.
    Googling about CURL error 77 indicates that it's a problem with CA Certificates and SSL/TLS config. That's not anything you can control, but if your hosting company can't fix it, find a host who can.
    .

    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.

 

 

Similar Threads

  1. Ever increasing Physical Memory Usage since switching hosts
    By Ted Grapler in forum General Questions
    Replies: 14
    Last Post: 27 Jul 2017, 06:25 PM
  2. PayPal Checkout Errors Increased Since Requiring Address
    By Zedez512 in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 29 Apr 2015, 03:31 AM
  3. bunch of errors since upgrade, help please
    By Xbox Memberships in forum Upgrading to 1.5.x
    Replies: 21
    Last Post: 14 Mar 2013, 05:16 PM
  4. Getting SQL errors since upgrading
    By bogyi in forum General Questions
    Replies: 4
    Last Post: 1 Nov 2010, 09:32 AM
  5. Errors after switching servers and upgrading
    By chrisb in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 12 Nov 2006, 04:43 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