mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 16:54:31 -04:00
Merge pull request #6036 from beganovich/v5-1506-generic-error-page
Throw PaymentFailed (generic) exception
This commit is contained in:
commit
e377953f0a
@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
namespace App\PaymentDrivers;
|
namespace App\PaymentDrivers;
|
||||||
|
|
||||||
|
use App\Exceptions\PaymentFailed;
|
||||||
use App\Factory\PaymentFactory;
|
use App\Factory\PaymentFactory;
|
||||||
use App\Http\Requests\Payments\PaymentWebhookRequest;
|
use App\Http\Requests\Payments\PaymentWebhookRequest;
|
||||||
use App\Http\Requests\Request;
|
use App\Http\Requests\Request;
|
||||||
@ -490,9 +491,7 @@ class StripePaymentDriver extends BaseDriver
|
|||||||
return PaymentMethod::retrieve($source, $this->stripe_connect_auth);
|
return PaymentMethod::retrieve($source, $this->stripe_connect_auth);
|
||||||
|
|
||||||
} catch (ApiErrorException | Exception $e) {
|
} catch (ApiErrorException | Exception $e) {
|
||||||
|
throw new PaymentFailed($e->getMessage(), $e->getCode());
|
||||||
return $this->processInternallyFailedPayment($this, $e);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user