Skip to content

Commit

Permalink
A - Avoid check SSL certs
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Fariña Hernández committed Nov 17, 2014
1 parent 2c10074 commit d593f56
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
10 changes: 0 additions & 10 deletions lib/Stripe/ApiRequestor.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,16 +251,6 @@ private function _curlRequest($method, $absUrl, $headers, $params)
throw new Stripe_ApiError("Unrecognized method $method");
}

$stripeToken = Stripe::getToken();
if(!is_null($stripeToken)){
if(strpos($absUrl,'?') === false){
$glue = '?';
} else {
$glue = '&';
}
$absUrl .= $glue . 'token=' . $stripeToken;
}

$absUrl = self::utf8($absUrl);
$opts[CURLOPT_URL] = $absUrl;
$opts[CURLOPT_RETURNTRANSFER] = true;
Expand Down
17 changes: 0 additions & 17 deletions lib/Stripe/Stripe.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ abstract class Stripe

const VERSION = '1.17.2';

public static $token = null;

/**
* @return string The API key used for requests.
*/
Expand Down Expand Up @@ -83,19 +81,4 @@ public static function setApiBase($apiBase)
{
self::$apiBase = $apiBase;
}
/**
* @return null
*/
public static function getToken()
{
return self::$token;
}

/**
* @param null $token
*/
public static function setToken($token)
{
self::$token = $token;
}
}

0 comments on commit d593f56

Please sign in to comment.