Skip to content
Browse files

Adds better documentation of the SSL fix, what it is and what it mean…

…s in Request.php.
  • Loading branch information...
1 parent b69dd09 commit 2cb3b49ee479a4314b29b7ef0b8c36c9ca3c8a96 @timrogers timrogers committed
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/GoCardless/Request.php
View
7 lib/GoCardless/Request.php
@@ -84,7 +84,12 @@ protected static function call($method, $url, $params = array()) {
// Request format
$curl_options[CURLOPT_HTTPHEADER][] = 'Accept: application/json';
- // Debug - DO NOT USE THIS IN PRODUCTION
+ // Debug - DO NOT USE THIS IN PRODUCTION FOR SECURITY REASONS
+ //
+ // This fixes a problem in some environments with connecting to HTTPS-enabled servers.
+ // Sometimes, Curl has no list of valid CAs, and so won't connect. With this fix, it
+ // doesn't verify and just connects anyway, instead of throwing an exception.
+ //
//$curl_options[CURLOPT_SSL_VERIFYPEER] = false;
// HTTP Authentication (for confirming new payments)

0 comments on commit 2cb3b49

Please sign in to comment.
Something went wrong with that request. Please try again.