mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Catch additional errors for checkout.com
This commit is contained in:
parent
52b24e0fab
commit
689d27cda3
@ -263,6 +263,16 @@ class CreditCard implements MethodInterface
|
||||
|
||||
if (is_array($error_details)) {
|
||||
$error_details = end($e->error_details['error_codes']);
|
||||
|
||||
SystemLogger::dispatch(
|
||||
$error_details,
|
||||
SystemLog::CATEGORY_GATEWAY_RESPONSE,
|
||||
SystemLog::EVENT_GATEWAY_ERROR,
|
||||
SystemLog::TYPE_CHECKOUT,
|
||||
$this->checkout->client,
|
||||
$this->checkout->client->company,
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
$this->checkout->unWindGatewayFees($this->checkout->payment_hash);
|
||||
@ -294,7 +304,7 @@ class CreditCard implements MethodInterface
|
||||
);
|
||||
|
||||
return new PaymentFailed($e->getMessage(), $e->getCode());
|
||||
// return $this->checkout->processInternallyFailedPayment($this->checkout, $human_exception);
|
||||
|
||||
} catch (CheckoutAuthorizationException $e) {
|
||||
// Bad Invalid authorization
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user