[ Index ] |
PHP Cross Reference of Phabricator |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 417 lines (13 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
Stripe_ApiRequestor:: (15 methods):
blacklistedCerts()
__construct()
apiUrl()
utf8()
_encodeObjects()
encode()
request()
handleApiError()
_requestRaw()
_interpretResponse()
_curlRequest()
handleCurlError()
checkSslCert()
isBlackListed()
caBundle()
Class: Stripe_ApiRequestor - X-Ref
blacklistedCerts() X-Ref |
__construct($apiKey=null) X-Ref |
No description |
apiUrl($url='') X-Ref |
returns: string The full path. param: string $url The path to the API endpoint. |
utf8($value) X-Ref |
returns: string|mixed The UTF8-encoded string, or the object passed in if param: string|mixed $value A string to UTF8-encode. |
_encodeObjects($d) X-Ref |
No description |
encode($arr, $prefix=null) X-Ref |
returns: string A querystring, essentially. param: array $arr An map of param keys to values. param: string|null $prefix (It doesn't look like we ever use $prefix...) |
request($method, $url, $params=null) X-Ref |
param: string $method param: string $url param: array|null $params return: array An array whose first element is the response and second |
handleApiError($rbody, $rcode, $resp) X-Ref |
param: string $rbody A JSON string. param: int $rcode param: array $resp |
_requestRaw($method, $url, $params) X-Ref |
No description |
_interpretResponse($rbody, $rcode) X-Ref |
No description |
_curlRequest($method, $absUrl, $headers, $params) X-Ref |
No description |
handleCurlError($errno, $message) X-Ref |
param: number $errno param: string $message |
checkSslCert($url) X-Ref |
Preflight the SSL certificate presented by the backend. This isn't 100% bulletproof, in that we're not actually validating the transport used to communicate with Stripe, merely that the first attempt to does not use a revoked certificate. Unfortunately the interface to OpenSSL doesn't make it easy to check the certificate before sending potentially sensitive data on the wire. This approach raises the bar for an attacker significantly. |
isBlackListed($certificate) X-Ref |
No description |
caBundle() X-Ref |
No description |
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |