• Resolved Joolzsoulstice

    (@joolzsoulstice)


    I am really losing my mind over this!
    I have been having problems with orders being cancelled after a payment timeout where paypal is giving an error message for SSL, as follows:
    [timeout] => 60
    [httpversion] => 1.1
    [compress] =>
    [decompress] =>
    [user-agent] => WooCommerce/2.5.5
    )

    03-29-2016 @ 12:22:22 – IPN Response: WP_Error Object
    (
    [errors] => Array
    (
    [http_request_failed] => Array
    (
    [0] => SSL connect error
    )

    )

    [error_data] => Array
    (
    )

    )

    03-29-2016 @ 12:22:22 – Received invalid response from PayPal
    03-29-2016 @ 12:22:22 – Error response: SSL connect error

    I’ve:
    – Changed the Notify Url to the onegiven to me by my host (beginning https) on my paypal account, though in my test purchase logs (using sandbox) it only shows as an http url still
    – Tested a slightly different https address as suggested in Woocommerce threads, incase that might help, no joy
    – Checked my email address is correct on paypal
    – Set up Payment Data Transfer on Paypal
    ?- Created an Identity Token on paypal and entered that into my woocommerce settings
    – Entered all API references onto Woocommerce

    All of these things have been suggested on various sites and threads and all was running fine only a couple of months ago without these changes, so it must be something that has occurred in updating.

    My host is being somewhat unhelpful and just told me it’s nothing to do with them and I should contact Woocommerce (so here I am!) The only thing I can see that should be an issue (though PLEASE correct me if I am wrong) is that the Notify Url that is going through in the logs is http not https, so I’m wondering if there is anywhere within the Woocommerce settings that I can edit this so it matches the paypal info or is this actually an issue with the host??

    Thanks for any help anyone can give – I have built my site myself – over 2 years ago, so I can’t be doing too bad a job! – and I am not a programmer, but I am a quick learner!

    https://www.ads-software.com/plugins/woocommerce/

Viewing 15 replies - 16 through 30 (of 64 total)
  • Hi Mike, I made the changes you suggestedThis might need changing to (1 to 6) https://github.com/woothemes/woocommerce/pull/10639/files#diff-756119b732dafd5bfcea0f7bb32fd481R126 and still having the same issue. Sales are completing in PayPal Sandbox mode, but still pending and then canceling out.
    Thanks!
    Wendy

    @rich95, it didn’t help me to resolve my issue getting SSL certificate. But it might be worth a try.

    Is there any update to this? We have multiple WooCommerce stores experiencing this same issue. We have updated the files in the thread above from Mike and have installed SSL certificates (if not already installed).

    Thread Starter Joolzsoulstice

    (@joolzsoulstice)

    I did the changes you suggested, Mike, but nothing has changed. I’m going to get an SSL certificate and see if that helps though, judging above what everyone has said, that might not do it. Still, worth having based on the Paypal and Google recommendations for better site legitimacy. I’ll let you know if I get anywhere.
    Thanks

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Getting an SSL certificate in this case is probably not going to help. The issue her between the connection of your server and the paypal servers.

    When you see SSL connect error in the logs this confirms this.

    Hostgator don’t seem to support TLS 1.2 by default which is the new PayPal requirement (and to be honest this is a reasonable requirement to keep user data secure).

    What was the final code change you ended up with? Share the file and I’ll check it was modified properly.

    Hi Mike – My host is 1and1. I have a dedicated managed server. Would this be my issue as well?

    Also, any thoughts on my previous posting above that I am running WooCommerce v2.1.12?

    I really hope you can help me with this problem as well.

    Thank you,
    -Richard

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Possibly but I’m not familiar with that one. Asked them?

    We are no longer getting SSL errors, but PayPal is showing “HTTP response code 500” within the IPN history and WooCommerce is reporting “Received invalid response from PayPal” errors.

    Sample WooCommerce log is below. Please advise.

    04-11-2016 @ 10:19:52 - Checking IPN response is valid
    04-11-2016 @ 10:19:53 - IPN Request: Array
    (
        [body] => Array
            (
                [cmd] => _notify-validate
                [mc_gross] => 40.00
                [invoice] => SC-102414
                [protection_eligibility] => Ineligible
                [payer_id] => P4N46R7HECWNN
                [tax] => 0.00
                [payment_date] => 05:58:07 Apr 11, 2016 PDT
                [payment_status] => Completed
                [charset] => windows-1252
                [mc_shipping] => 0.00
                [mc_handling] => 0.00
                [first_name] => **removed**
                [mc_fee] => 1.46
                [notify_version] => 3.8
                [custom] => {"order_id":2361,"order_key":"wc_order_570b9e711d365"}
                [payer_status] => unverified
                [business] => **removed**
                [num_cart_items] => 1
                [mc_handling1] => 0.00
                [verify_sign] => AlVZbyzcmdxt9F4QCE48d3xBNTS5A2TQf47lIVwgmdZwjGjpAMtLEY97
                [payer_email] => **removed**
                [mc_shipping1] => 0.00
                [tax1] => 0.00
                [txn_id] => 4NE88176V6980344S
                [payment_type] => instant
                [last_name] => **removed**
                [item_name1] => **removed**
                [receiver_email] => **removed**
                [quantity1] => 1
                [receiver_id] => 4JC79UA5VLSMU
                [txn_type] => cart
                [mc_gross_1] => 40.00
                [mc_currency] => CAD
                [residence_country] => CA
                [ipn_track_id] => 932b4438c8897
            )
    
        [timeout] => 60
        [httpversion] => 1.1
        [compress] =>
        [decompress] =>
        [user-agent] => WooCommerce/2.5.5
    )
    
    04-11-2016 @ 10:19:53 - IPN Response: Array
    (
        [headers] => Array
            (
                [server] => Apache
                [x-frame-options] => SAMEORIGIN
                [paypal-debug-id] => 6c7760bc1c2da
                [cache-control] => max-age=0, no-cache, no-store, must-revalidate
                [pragma] => no-cache
                [content-type] => text/html; charset=UTF-8
                [dc] => slc-b-origin-www-1.paypal.com
                [date] => Mon, 11 Apr 2016 13:19:53 GMT
                [content-length] => 7
                [connection] => close
                [set-cookie] => Array
                    (
                        [0] => cwrClyrK4LoCV1fydGbAxiNL6iG=4AT3mE7IaheTef4WPrlcDNFWO67ozXzw4d6cw3KB95u_WChvI-SSJROpSDN-e81teQ-Up03oymRWw8sHukxRZF8-_wZvZao11znqDypZVR2Wl8EW7rERDyLyDukwQgCLnOKfEd3LAhwuXIQB-QIq-0eD5aWIxR0wg7_0ka69EyXL4iXvJ5GR3aZARUdwgcyAmg2OiePh2uHcPyIWQAVywUjQeu-m98rOyv_AtRS_Gg0kRUU3W7OWlQll75L7mtEgXpMSPMQu31puxCoAGJJm-H07YNacXjCFTFZEQKcF_QUFl7TFIt_0YJb1UYH1xnwIbCNijAsz_moYjvW-o3_YTzqKL23NboSDKTcnqV5Rz8k9k-aI9VMuB0zJyBVA2aeDMW26DppuZd9a4dZ6T1Kg4_EfI63o9viZozeekrktgulDWvSOCP7bBAYDhnK; domain=.paypal.com; path=/; Secure; HttpOnly
                        [1] => cookie_check=yes; expires=Thu, 09-Apr-2026 13:19:53 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
                        [2] => navcmd=_notify-validate; domain=.paypal.com; path=/; Secure; HttpOnly
                        [3] => navlns=0.0; expires=Wed, 11-Apr-2018 13:19:53 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
                        [4] => X-PP-SILOVER=name%3DLIVE6.WEB.1%26silo_version%3D880%26app%3Dappdispatcher%26TIME%3D2040793943%26HTTP_X_PP_AZ_LOCATOR%3D; Expires=Mon, 11 Apr 2016 13:49:53 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
                        [5] => X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT
                        [6] => AKDC=slc-b-origin-www-1.paypal.com; expires=Mon, 11-Apr-2016 13:49:53 GMT; path=/; secure
                    )
    
                [strict-transport-security] => max-age=63072000
            )
    
        [body] => INVALID
        [response] => Array
            (
                [code] => 200
                [message] => OK
            )
    
        [cookies] => Array
            (
                [0] => WP_Http_Cookie Object
                    (
                        [name] => cwrClyrK4LoCV1fydGbAxiNL6iG
                        [value] => 4AT3mE7IaheTef4WPrlcDNFWO67ozXzw4d6cw3KB95u_WChvI-SSJROpSDN-e81teQ-Up03oymRWw8sHukxRZF8-_wZvZao11znqDypZVR2Wl8EW7rERDyLyDukwQgCLnOKfEd3LAhwuXIQB-QIq-0eD5aWIxR0wg7_0ka69EyXL4iXvJ5GR3aZARUdwgcyAmg2OiePh2uHcPyIWQAVywUjQeu-m98rOyv_AtRS_Gg0kRUU3W7OWlQll75L7mtEgXpMSPMQu31puxCoAGJJm-H07YNacXjCFTFZEQKcF_QUFl7TFIt_0YJb1UYH1xnwIbCNijAsz_moYjvW-o3_YTzqKL23NboSDKTcnqV5Rz8k9k-aI9VMuB0zJyBVA2aeDMW26DppuZd9a4dZ6T1Kg4_EfI63o9viZozeekrktgulDWvSOCP7bBAYDhnK
                        [expires] =>
                        [path] => /
                        [domain] => .paypal.com
                        [secure] =>
                        [httponly] =>
                    )
    
                [1] => WP_Http_Cookie Object
                    (
                        [name] => cookie_check
                        [value] => yes
                        [expires] => 1775740793
                        [path] => /
                        [domain] => .paypal.com
                        [secure] =>
                        [httponly] =>
                    )
    
                [2] => WP_Http_Cookie Object
                    (
                        [name] => navcmd
                        [value] => _notify-validate
                        [expires] =>
                        [path] => /
                        [domain] => .paypal.com
                        [secure] =>
                        [httponly] =>
                    )
    
                [3] => WP_Http_Cookie Object
                    (
                        [name] => navlns
                        [value] => 0.0
                        [expires] => 1523452793
                        [path] => /
                        [domain] => .paypal.com
                        [secure] =>
                        [httponly] =>
                    )
    
                [4] => WP_Http_Cookie Object
                    (
                        [name] => X-PP-SILOVER
                        [value] => name=LIVE6.WEB.1&silo_version=880&app=appdispatcher&TIME=2040793943&HTTP_X_PP_AZ_LOCATOR=
                        [expires] => 1460382593
                        [path] => /
                        [domain] => .paypal.com
                        [secure] =>
                        [httponly] =>
                    )
    
                [5] => WP_Http_Cookie Object
                    (
                        [name] => X-PP-SILOVER
                        [value] =>
                        [expires] => 1
                        [path] => /cgi-bin/
                        [domain] => www.paypal.com
                    )
    
                [6] => WP_Http_Cookie Object
                    (
                        [name] => AKDC
                        [value] => slc-b-origin-www-1.paypal.com
                        [expires] => 1460382593
                        [path] => /
                        [domain] => www.paypal.com
                        [secure] =>
                    )
    
            )
    
        [filename] =>
    )
    
    04-11-2016 @ 10:19:53 - Received invalid response from PayPal
    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    newmediamotion contact paypal for that one.

    Hi Mike,

    To add on to my previous post… the WooCommerce log shows that PayPal sent everything to WooCommerce, the information parsed is correct, yet WooCommerce reported “Received invalid response from PayPal”.

    Isn’t this a WooCommerce issue? What more could PayPal do?

    Then the orders time out and cancel even though PayPal (according to the log) sent the correct payment information.

    Please advise.

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Look in the log. The response from paypay says INVALID not SUCCESS

    Hi Mike,

    We finally found out what the root issue was for us. PHP was upgraded on our server to 5.6.19 (all custom settings, modules and all were kept the same as the previous version during compilation) and since that time IPNs starting failing. The previous version of PHP on our server was 5.4.45.

    I thought it was an SSL issue and installed certificates on sites which didn’t have one (two didn’t have SSL certificates) as when checking the settings in PayPal it wouldn’t let me set notification URLs unless they were https.

    We have since downgraded PHP back to 5.4.45 and IPNs are working properly as they had previously.

    Are there any known issues with PHP 5.6.19?

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    No, but things such as old versions of SSL can be bundled with PHP so perhaps on your server your PHP 5.6 doesn’t support TLS 1.2 by default.

    Hello,

    We have a woocommerce site with woocommerce subscriptions which we updated to version 2.5.5 and 2.0.12 accordingly.

    Since then when we try to make a payment using paypal sandbox we get the SSL connect error message.

    We’re hosted on Hostgator -PHP 5.4.45- and here’s the log we get when we try to pay:

    04-17-2016 @ 11:20:46 - Generating payment form for order 24114. Notify URL: https://domain.com/wc-api/WC_Gateway_Paypal/
    04-17-2016 @ 11:20:46 - Subscription Request Parameters: Array
    (
        [method] => POST
        [uri] => https://api-3t.sandbox.paypal.com/nvp
        [user-agent] => WooCommerce-Subscriptions-PayPal/2.0.12 (WooCommerce/2.5.5; WordPress/4.4.2)
        [headers] => Array
            (
            )
    
        [body] => Array
    (
        [USER] => ******************************
        [PWD] => ****************
        [SIGNATURE] => ********************************************************
        [VERSION] => 124
        [METHOD] => SetExpressCheckout
        [L_BILLINGTYPE0] => MerchantInitiatedBillingSingleAgreement
        [L_BILLINGAGREEMENTDESCRIPTION0] => Orders with Site
        [L_BILLINGAGREEMENTCUSTOM0] => {"order_id":24114,"order_key":"wc_order_57133f4468c2c"}
        [RETURNURL] => https://domain.com/wc-api/wcs_paypal/?action=create_billing_agreement
        [CANCELURL] => https://domain.com/checkout/?cancel_order=true&order=wc_order_57133f4468c2c&order_id=24114&redirect&_wpnonce=0d5912549d
        [BRANDNAME] => Site
        [LANDINGPAGE] => Login
        [NOSHIPPING] => 1
        [L_PAYMENTREQUEST_0_NAME0] => Monthly Subscription
        [L_PAYMENTREQUEST_0_AMT0] => 3.00
        [L_PAYMENTREQUEST_0_QTY0] => 1
        [L_PAYMENTREQUEST_0_ITEMURL0] => https://domain.com/shop/digital-subscription/monthly-subscription/
        [PAYMENTREQUEST_0_AMT] => 3.00
        [PAYMENTREQUEST_0_CURRENCYCODE] => EUR
        [PAYMENTREQUEST_0_ITEMAMT] => 3.00
        [PAYMENTREQUEST_0_SHIPPINGAMT] => 0.00
        [PAYMENTREQUEST_0_TAXAMT] => 0.00
        [PAYMENTREQUEST_0_INVNUM] => WC-24114
        [PAYMENTREQUEST_0_PAYMENTACTION] => Sale
        [PAYMENTREQUEST_0_PAYMENTREQUESTID] => 24114
        [PAYMENTREQUEST_0_CUSTOM] => {"order_id":24114,"order_key":"wc_order_57133f4468c2c"}
        [MAXAMT] => 0.00
    )
    
        [duration] => 0.28401s
    )
    
    04-17-2016 @ 11:20:46 - Subscription Request Response: Array
    (
        [code] =>
        [message] =>
        [headers] =>
        [body] =>
    )

    We haven't enabled "Force secure checkout" as our site doesn't use an SSL connection.

    We also did the changes to the class-wc-https.php and woocommerce.php file but still nothing, I guess because we don't use ssl.

    Any help on this? The paypal log file doesn't even say why it errors out!

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Do a regular purchase and check log. Seems it’s the same issue (host gator not supporting tls 1.2).

Viewing 15 replies - 16 through 30 (of 64 total)
  • The topic ‘SSL error for PayPal’ is closed to new replies.