Skip to content

Commit

Permalink
Merge pull request #4 from danielfh/master
Browse files Browse the repository at this point in the history
Avoid check SSL Certs
  • Loading branch information
topikito committed Nov 17, 2014
2 parents d9bb455 + d593f56 commit 01fa1e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/Stripe/ApiRequestor.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,10 @@ private function _interpretResponse($rbody, $rcode)

private function _curlRequest($method, $absUrl, $headers, $params)
{

if (!self::$_preFlight) {
self::$_preFlight = $this->checkSslCert($this->apiUrl());
if(Stripe::getVerifySslCerts()) {
if (!self::$_preFlight) {
self::$_preFlight = $this->checkSslCert($this->apiUrl());
}
}

$curl = curl_init();
Expand Down
1 change: 1 addition & 0 deletions lib/Stripe/Stripe.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ abstract class Stripe
* @var boolean Defaults to true.
*/
public static $verifySslCerts = false;

const VERSION = '1.17.2';

/**
Expand Down

0 comments on commit 01fa1e2

Please sign in to comment.