Paypal SDK Adaptive Payments列表中的未知密码:TLSv1 [英] Paypal SDK Adaptive Payments Unknown cipher in list: TLSv1

查看:183
本文介绍了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

list:TLSv1

Message Unknown cipher in list: TLSv1

详细讯息连接到 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 < a>

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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆