Paypal SDK Adaptive Payments Unknown cipher in list: TLSv1(Paypal SDK Adaptive Payments 列表中的未知密码:TLSv1)
问题描述
我正在尝试使用 SetPaymentOptions 实现自适应支付.我收到以下错误:
I'm trying to implement adaptive payments with SetPaymentOptions. I'm getting the following error:
SDK 异常输入 PPConnectionException
SDK Exception Type PPConnectionException
列表中的消息未知密码:TLSv1
Message Unknown cipher in list: TLSv1
详细消息连接到 https://svcs.paypal.com/AdaptivePayments/SetPaymentOptions 时出错
Detailed message Error connecting to https://svcs.paypal.com/AdaptivePayments/SetPaymentOptions
我不知道这是什么意思.关于如何让这个工作的任何想法?我在 PPHttpconfig 中有我的部分代码:
I dont know what this means. Any idea on how to get this working? I have this for part of my code in the PPHttpconfig:
public static $DEFAULT_CURL_OPTS = array(
CURLOPT_SSLVERSION => 1,
CURLOPT_CONNECTTIMEOUT => 10,
CURLOPT_RETURNTRANSFER => TRUE,
CURLOPT_TIMEOUT => 60, // maximum number of seconds to allow cURL functions to execute
CURLOPT_USERAGENT => 'PayPal-PHP-SDK',
CURLOPT_HTTPHEADER => array(),
CURLOPT_SSL_VERIFYHOST => 2,
CURLOPT_SSL_VERIFYPEER => 1,
CURLOPT_SSL_CIPHER_LIST => 'TLSv1',
);
推荐答案
似乎如果您使用的是 NSS 而不是 OpenSSL,具有密码列表会导致问题,因为 TLSv1 不在 NSS 中.
Seems if you are using NSS instead of OpenSSL, Having Cipher List is causing the issue, as TLSv1 is not in the NSS.
如果您遇到该错误,您可能需要运行
If you are having that error, you might want to run
php -r "print_r(curl_version());"
如果输出有
[ssl_version] => NSS/...
这意味着,你有 NSS.然后你可以从数组中删除 CURLOPT_SSL_CIPHER_LIST
It means, you have NSS. Then you can just remove the CURLOPT_SSL_CIPHER_LIST from the array
public static $DEFAULT_CURL_OPTS = array(
CURLOPT_SSLVERSION => 1,
CURLOPT_CONNECTTIMEOUT => 10,
CURLOPT_RETURNTRANSFER => TRUE,
CURLOPT_TIMEOUT => 60, // maximum number of seconds to allow cURL functions to execute
CURLOPT_USERAGENT => 'PayPal-PHP-SDK',
CURLOPT_HTTPHEADER => array(),
CURLOPT_SSL_VERIFYHOST => 2,
CURLOPT_SSL_VERIFYPEER => 1,
);
发布是在以下位置修复的:https://github.com/paypal/sdk-core-php/releases/tag/v2.5.8
The release was made with the fix at : https://github.com/paypal/sdk-core-php/releases/tag/v2.5.8
这篇关于Paypal SDK Adaptive Payments 列表中的未知密码:TLSv1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Paypal SDK Adaptive Payments 列表中的未知密码:TLSv1
- 如何使用 Google API 在团队云端硬盘中创建文件夹? 2022-01-01
- 使用 GD 和 libjpeg 支持编译 PHP 2022-01-01
- Laravel 5:Model.php 中的 MassAssignmentException 2021-01-01
- PHP - if 语句中的倒序 2021-01-01
- PHP foreach() 与数组中的数组? 2022-01-01
- openssl_digest vs hash vs hash_hmac?盐与盐的区别HMAC? 2022-01-01
- 如何从数据库中获取数据以在 laravel 中查看页面? 2022-01-01
- 如何在 Symfony2 中正确使用 webSockets 2021-01-01
- 覆盖 Magento 社区模块控制器的问题 2022-01-01
- Oracle 即时客户端 DYLD_LIBRARY_PATH 错误 2022-01-01
