Fixed issue related to using multiple gateways

This commit is contained in:
Hillel Coren 2015-03-25 17:52:01 +02:00
parent 13994f98a8
commit a014bf313c

View File

@ -328,7 +328,9 @@ class PaymentController extends \BaseController
} else {
return self::do_payment($invitationKey, false);
}
}
} else {
Session::put('payment_type', PAYMENT_TYPE_ANY);
}
$invitation = Invitation::with('invoice.invoice_items', 'invoice.client.currency', 'invoice.client.account.account_gateways.gateway')->where('invitation_key', '=', $invitationKey)->firstOrFail();
$invoice = $invitation->invoice;