我们设置了多个Woo Commerce商店,但我们已经应用了一个SSL证书。
在具有SSL证书的证书上,我们在Woo Commerce支付伙伴日志中收到错误“错误响应:SSL连接错误”。有没有人知道原因是什么。
我尝试将通知网址更改为http连接,但仍会产生同样的问题。
WooCommerce PayPal记录在下面
01-29-2016 @ 10:25:25 - Generating payment form for order 1869. Notify URL: https://frictionfreeshaving.com/wc-api/WC_Gateway_Paypal/
01-29-2016 @ 10:25:48 - Checking IPN response is valid
01-29-2016 @ 10:25:48 - IPN Request: Array
(
[body] => Array
(
[cmd] => _notify-validate
[transaction_subject] => Subscription 1870 (Order 1869) - test-razor
[payment_date] => 02:25:44 Jan 29, 2016 PST
[txn_type] => subscr_payment
[subscr_id] => I-0TFMV85ERGCJ
[last_name] => singh
[residence_country] => GB
[item_name] => Subscription 1870 (Order 1869) - test-razor
[payment_gross] =>
[mc_currency] => GBP
[business] => tjmailcoms@gmail.com
[payment_type] => instant
[protection_eligibility] => Ineligible
[verify_sign] => ALUw10OT3.wkDPQ73JiKtXApC16gA24mWOunWinyGFBel4bkL0L8u3O-
[payer_status] => verified
[test_ipn] => 1
[payer_email] => tjmailcoms03@gmail.com
[txn_id] => 41285066KK228700R
[receiver_email] => tjmailcoms@gmail.com
[first_name] => tejinder
[invoice] => WC-10011869
[payer_id] => M7A8DVMKC4GCW
[receiver_id] => XK2LNP4PTGQUU
[payment_status] => Completed
[payment_fee] =>
[mc_fee] => 0.23
[mc_gross] => 1.00
[custom] => {"order_id":1869,"order_key":"wc_order_56ab3e14c01b3","subscription_id":1870,"subscription_key":"wc_order_56ab3e14e7922"}
[charset] => windows-1252
[notify_version] => 3.8
[ipn_track_id] => f7146428bb012
)
[timeout] => 60
[httpversion] => 1.1
[compress] =>
[decompress] =>
[user-agent] => WooCommerce/2.3.11
)
01-29-2016 @ 10:25:48 - IPN Response: WP_Error Object
(
[errors] => Array
(
[http_request_failed] => Array
(
[0] => SSL connect error
)
)
[error_data] => Array
(
)
)
01-29-2016 @ 10:25:48 - Received invalid response from PayPal
01-29-2016 @ 10:25:48 - Error response: SSL connect error
01-29-2016 @ 10:25:52 - Checking IPN response is valid
01-29-2016 @ 10:25:53 - IPN Request: Array
(
[body] => Array
(
[cmd] => _notify-validate
[txn_type] => subscr_signup
[subscr_id] => I-0TFMV85ERGCJ
[last_name] => singh
[residence_country] => GB
[mc_currency] => GBP
[item_name] => Subscription 1870 (Order 1869) - test-razor
[business] => tjmailcoms@gmail.com
[recurring] => 1
[verify_sign] => AFUzd6d5BFLcPs.756upyW0L6Uo6A-NLMyaoJ69kQZg1yL4yEsY4gTMf
[payer_status] => verified
[test_ipn] => 1
[payer_email] => tjmailcoms03@gmail.com
[first_name] => tejinder
[receiver_email] => tjmailcoms@gmail.com
[payer_id] => M7A8DVMKC4GCW
[invoice] => WC-10011869
[reattempt] => 1
[subscr_date] => 02:25:42 Jan 29, 2016 PST
[custom] => {"order_id":1869,"order_key":"wc_order_56ab3e14c01b3","subscription_id":1870,"subscription_key":"wc_order_56ab3e14e7922"}
[charset] => windows-1252
[notify_version] => 3.8
[period3] => 1 D
[mc_amount3] => 1.00
[ipn_track_id] => f7146428bb012
)
[timeout] => 60
[httpversion] => 1.1
[compress] =>
[decompress] =>
[user-agent] => WooCommerce/2.3.11
)
01-29-2016 @ 10:25:53 - IPN Response: WP_Error Object
(
[errors] => Array
(
[http_request_failed] => Array
(
[0] => SSL connect error
)
)
[error_data] => Array
(
)
)
01-29-2016 @ 10:25:53 - Received invalid response from PayPal
01-29-2016 @ 10:25:53 - Error response: SSL connect error
01-29-2016 @ 10:30:08 - Checking IPN response is valid
01-29-2016 @ 10:30:09 - IPN Request: Array
(
[body] => Array
(
[cmd] => _notify-validate
[txn_type] => subscr_cancel
[subscr_id] => I-0TFMV85ERGCJ
[last_name] => singh
[residence_country] => GB
[mc_currency] => GBP
[item_name] => Subscription 1870 (Order 1869) - test-razor
[business] => tjmailcoms@gmail.com
[recurring] => 1
[verify_sign] => Am729F3QdZ4ucintGF7EZMXFQKlgAKfHAWYr4ohDcQkhr0xx0H34n8lT
[payer_status] => verified
[test_ipn] => 1
[payer_email] => tjmailcoms03@gmail.com
[first_name] => tejinder
[receiver_email] => tjmailcoms@gmail.com
[payer_id] => M7A8DVMKC4GCW
[invoice] => WC-10011869
[reattempt] => 1
[subscr_date] => 02:29:50 Jan 29, 2016 PST
[custom] => {"order_id":1869,"order_key":"wc_order_56ab3e14c01b3","subscription_id":1870,"subscription_key":"wc_order_56ab3e14e7922"}
[charset] => windows-1252
[notify_version] => 3.8
[period3] => 1 D
[mc_amount3] => 1.00
[ipn_track_id] => 542b79c8e6b4
)
[timeout] => 60
[httpversion] => 1.1
[compress] =>
[decompress] =>
[user-agent] => WooCommerce/2.3.11
)
01-29-2016 @ 10:30:09 - IPN Response: WP_Error Object
(
[errors] => Array
(
[http_request_failed] => Array
(
[0] => SSL connect error
)
)
[error_data] => Array
(
)
)
01-29-2016 @ 10:30:09 - Received invalid response from PayPal
01-29-2016 @ 10:30:09 - Error response: SSL connect error
由于这一点,没有订单正在处理,但正在付款。任何帮助都会非常感激,因为我没有想法。
TJ
答案 0 :(得分:2)
从here复制我之前的回答:
Paypal最近在沙盒上推出了一些安全更新(生产将在6月更新)https://devblog.paypal.com/upcoming-security-changes-notice/
最重要的是,沙箱不再接受TLS 1.0和1.1,因此您需要通过强制卷曲选项来确保使用TLS 1.2,例如:
$ curl->的SetOption(CURLOPT_SSLVERSION,6);
您需要OpenSSL 1.0.1+才能使用此功能。您可以等待woocommerce自己发布补丁,或者您可以通过更新到PHP 5.5.19+和(lib)curl 7.34 +来自动使TLS 1.2工作(通常的密码将在SSL握手期间推断)。