I'm trying to implement adaptive payments with SetPaymentOptions. I'm getting the following error:
SDK Exception Type PPConnectionException
Message Unknown cipher in list: TLSv1
Detailed message Error connecting to https://svcs.paypal.com/AdaptivePayments/SetPaymentOptions
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',
);
See Question&Answers more detail:os