mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-27 20:01:26 +01:00
NEW Upgrade of Stripe lib to 6.4.1
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user