Update Stripe PHP API

Summary: Ref T2787. This brings us up to date.

Test Plan: `git clone`

Reviewers: btrahan, chad

Reviewed By: chad

Subscribers: epriestley

Maniphest Tasks: T2787

Differential Revision: https://secure.phabricator.com/D9916
This commit is contained in:
epriestley
2014-07-13 09:19:07 -07:00
parent 3a59cff7e6
commit 643c1c4a52
37 changed files with 6020 additions and 3282 deletions

View File

@@ -2,26 +2,28 @@
class Stripe_Error extends Exception
{
public function __construct($message=null, $http_status=null, $http_body=null, $json_body=null)
public function __construct($message, $httpStatus=null,
$httpBody=null, $jsonBody=null
)
{
parent::__construct($message);
$this->http_status = $http_status;
$this->http_body = $http_body;
$this->json_body = $json_body;
$this->httpStatus = $httpStatus;
$this->httpBody = $httpBody;
$this->jsonBody = $jsonBody;
}
public function getHttpStatus()
{
return $this->http_status;
return $this->httpStatus;
}
public function getHttpBody()
{
return $this->http_body;
return $this->httpBody;
}
public function getJsonBody()
{
return $this->json_body;
return $this->jsonBody;
}
}