Changeset View
Changeset View
Standalone View
Standalone View
externals/stripe-php/lib/Stripe/ApiRequestor.php
Context not available. | |||||
} | } | ||||
$curl = curl_init(); | $curl = curl_init(); | ||||
$method = strtolower($method); | $method = @strtolower($method); | ||||
$opts = array(); | $opts = array(); | ||||
if ($method == 'get') { | if ($method == 'get') { | ||||
$opts[CURLOPT_HTTPGET] = 1; | $opts[CURLOPT_HTTPGET] = 1; | ||||
Context not available. | |||||
return true; | return true; | ||||
} | } | ||||
if (strpos(PHP_VERSION, 'hiphop') !== false) { | if (@strpos(PHP_VERSION, 'hiphop') !== false) { | ||||
error_log( | error_log( | ||||
'Warning: HHVM does not support Stripe\'s SSL certificate '. | 'Warning: HHVM does not support Stripe\'s SSL certificate '. | ||||
'verification. (See http://docs.hhvm.com/manual/en/context.ssl.php) '. | 'verification. (See http://docs.hhvm.com/manual/en/context.ssl.php) '. | ||||
Context not available. | |||||
public static function isBlackListed($certificate) | public static function isBlackListed($certificate) | ||||
{ | { | ||||
$certificate = trim($certificate); | $certificate = trim($certificate); | ||||
$lines = explode("\n", $certificate); | $lines = @explode("\n", $certificate); | ||||
// Kludgily remove the PEM padding | // Kludgily remove the PEM padding | ||||
array_shift($lines); array_pop($lines); | array_shift($lines); array_pop($lines); | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0