gpt4 book ai didi

ssl - IPN 响应 : WP_Error Object, SSL 连接错误,错误响应:SSL 连接错误

转载 作者:太空宇宙 更新时间:2023-11-03 13:00:44 25 4
gpt4 key购买 nike

我们设置了多个 Woo Commerce 商店,但其中一个商店应用了 SSL 证书。

在具有 SSL 证书的那一个上,我们在 Woo Commerce 支付宝日志中收到错误“错误响应:SSL 连接错误”。有没有人知道原因可能是什么。

我已经尝试将通知 URL 更改为 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

最佳答案

here 复制我之前的回答:

Paypal 最近在沙盒上推出了一些安全更新(产品将在 6 月更新)https://devblog.paypal.com/upcoming-security-changes-notice/

最重要的是,沙箱不再接受 TLS 1.0 和 1.1,因此您需要通过强制 curl 选项确保使用的是 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 握手期间推导出)。

关于ssl - IPN 响应 : WP_Error Object, SSL 连接错误,错误响应:SSL 连接错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35083226/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com