NEW Upgrade of Stripe lib to 6.4.1

This commit is contained in:
Laurent Destailleur
2018-03-07 19:25:05 +01:00
parent fe45e82e99
commit b9f1695b34
59 changed files with 903 additions and 4343 deletions

View File

@@ -20,11 +20,20 @@ abstract class Base extends Exception
$this->httpHeaders = $httpHeaders;
$this->requestId = null;
// TODO: make this a proper constructor argument in the next major
// release.
$this->stripeCode = isset($jsonBody["error"]["code"]) ? $jsonBody["error"]["code"] : null;
if ($httpHeaders && isset($httpHeaders['Request-Id'])) {
$this->requestId = $httpHeaders['Request-Id'];
}
}
public function getStripeCode()
{
return $this->stripeCode;
}
public function getHttpStatus()
{
return $this->httpStatus;