mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Check for active gateway
This commit is contained in:
parent
625a8f4d7c
commit
c01681c42c
@ -98,6 +98,10 @@ class OnlinePaymentController extends BaseController
|
|||||||
|
|
||||||
$paymentDriver = $account->paymentDriver($invitation, $gatewayTypeId);
|
$paymentDriver = $account->paymentDriver($invitation, $gatewayTypeId);
|
||||||
|
|
||||||
|
if (! $paymentDriver) {
|
||||||
|
return redirect()->to('view/' . $invitation->invitation_key);
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return $paymentDriver->startPurchase(Input::all(), $sourceId);
|
return $paymentDriver->startPurchase(Input::all(), $sourceId);
|
||||||
} catch (Exception $exception) {
|
} catch (Exception $exception) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user