Check for active gateway
This commit is contained in:
parent
754f11cb51
commit
625c6b381f
1 changed files with 4 additions and 0 deletions
|
|
@ -98,6 +98,10 @@ class OnlinePaymentController extends BaseController
|
|||
|
||||
$paymentDriver = $account->paymentDriver($invitation, $gatewayTypeId);
|
||||
|
||||
if (! $paymentDriver) {
|
||||
return redirect()->to('view/' . $invitation->invitation_key);
|
||||
}
|
||||
|
||||
try {
|
||||
return $paymentDriver->startPurchase(Input::all(), $sourceId);
|
||||
} catch (Exception $exception) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue