From 2569c696a8504f2b7337a73c5a64b4107a88d137 Mon Sep 17 00:00:00 2001 From: Jay Patel Date: Wed, 20 Jan 2016 23:04:01 +0530 Subject: [PATCH] Sample code to show how to override default curl options --- sample/bootstrap.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sample/bootstrap.php b/sample/bootstrap.php index 6d1513b..bfdda9b 100644 --- a/sample/bootstrap.php +++ b/sample/bootstrap.php @@ -33,6 +33,14 @@ ini_set('display_errors', '1'); $clientId = 'AYSq3RDGsmBLJE-otTkBtM-jBRd1TCQwFf9RGfwddNXWz0uFU9ztymylOhRS'; $clientSecret = 'EGnHDxD_qRPdaLdZz8iCr8N7_MzF-YHPTkjs6NKYQvQSBngp4PTTVWkPZRbL'; +/** + * All default curl options are stored in the array inside the PayPalHttpConfig class. To make changes to those settings + * for your specific environments, feel free to add them using the code shown below + * Uncomment below line to override any default curl options. + */ +//PayPalHttpConfig::$defaultCurlOptions[CURLOPT_SSLVERSION] = CURL_SSLVERSION_TLSv1_2; + + /** @var \Paypal\Rest\ApiContext $apiContext */ $apiContext = getApiContext($clientId, $clientSecret);